Skip to content

Commit

Permalink
🚑 Use boot instead of register in service provider
Browse files Browse the repository at this point in the history
See #4
  • Loading branch information
lorisleiva committed Jun 1, 2019
1 parent ed3340d commit fc5d572
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ActionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class ActionServiceProvider extends ServiceProvider
{
public function register()
public function boot()
{
$this->app->extend('events', function ($dispatcher, $app) {
return (new EventDispatcher($app))->setQueueResolver(function () use ($app) {
Expand All @@ -27,10 +27,7 @@ public function register()
Route::macro('actions', function ($group) {
$this->namespace('\App\Actions')->group($group);
});
}

public function boot()
{
if ($this->app->runningInConsole()) {
$this->commands([
MakeActionCommand::class,
Expand Down

0 comments on commit fc5d572

Please sign in to comment.