From dc384fe1f5eca0d7bfb4d3a00f2b067976066075 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 27 Dec 2014 16:45:11 -0600 Subject: [PATCH] Stub out some folders for jobs / commands and events. --- app/Commands/Command.php | 7 +++++ app/Console/Commands/InspireCommand.php | 12 +-------- app/Events/Event.php | 7 +++++ app/Handlers/Commands/.gitkeep | 0 app/Handlers/Events/.gitkeep | 0 app/Http/Controllers/Controller.php | 3 ++- app/Providers/BusServiceProvider.php | 34 +++++++++++++++++++++++++ config/app.php | 16 +++--------- 8 files changed, 54 insertions(+), 25 deletions(-) create mode 100644 app/Commands/Command.php create mode 100644 app/Events/Event.php create mode 100644 app/Handlers/Commands/.gitkeep create mode 100644 app/Handlers/Events/.gitkeep create mode 100644 app/Providers/BusServiceProvider.php diff --git a/app/Commands/Command.php b/app/Commands/Command.php new file mode 100644 index 00000000..018bc219 --- /dev/null +++ b/app/Commands/Command.php @@ -0,0 +1,7 @@ +comment(PHP_EOL.Inspiring::quote().PHP_EOL); } diff --git a/app/Events/Event.php b/app/Events/Event.php new file mode 100644 index 00000000..d59f7690 --- /dev/null +++ b/app/Events/Event.php @@ -0,0 +1,7 @@ +mapUsing(function($command) + { + return Dispatcher::simpleMapping( + $command, 'App\Commands', 'App\Handlers\Commands' + ); + }); + } + + /** + * Register any application services. + * + * @return void + */ + public function register() + { + // + } + +} diff --git a/config/app.php b/config/app.php index d26bdd55..054ff42d 100644 --- a/config/app.php +++ b/config/app.php @@ -114,6 +114,7 @@ * Application Service Providers... */ 'App\Providers\AppServiceProvider', + 'App\Providers\BusServiceProvider', 'App\Providers\EventServiceProvider', 'App\Providers\RouteServiceProvider', @@ -122,6 +123,7 @@ */ 'Illuminate\Foundation\Providers\ArtisanServiceProvider', 'Illuminate\Auth\AuthServiceProvider', + 'Illuminate\Bus\BusServiceProvider', 'Illuminate\Cache\CacheServiceProvider', 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', 'Illuminate\Routing\ControllerServiceProvider', @@ -133,6 +135,7 @@ 'Illuminate\Hashing\HashServiceProvider', 'Illuminate\Mail\MailServiceProvider', 'Illuminate\Pagination\PaginationServiceProvider', + 'Illuminate\Pipeline\PipelineServiceProvider', 'Illuminate\Queue\QueueServiceProvider', 'Illuminate\Redis\RedisServiceProvider', 'Illuminate\Auth\Passwords\PasswordResetServiceProvider', @@ -143,19 +146,6 @@ ], - /* - |-------------------------------------------------------------------------- - | Service Provider Manifest - |-------------------------------------------------------------------------- - | - | The service provider manifest is used by Laravel to lazy load service - | providers which are not needed for each request, as well to keep a - | list of all of the services. Here, you may set its storage spot. - | - */ - - 'manifest' => storage_path().'/framework', - /* |-------------------------------------------------------------------------- | Class Aliases