Commit 1500a186 authored by Taylor Otwell's avatar Taylor Otwell

Tweak some jobs and names.

parent d2d9c79e
<?php namespace App\Commands;
abstract class Command {
//
}
<?php namespace App\Jobs;
abstract class Job {
//
}
<?php namespace App\Providers;
use Illuminate\Bus\Dispatcher;
use Illuminate\Support\ServiceProvider;
class BusServiceProvider extends ServiceProvider {
/**
* Bootstrap any application services.
*
* @param \Illuminate\Bus\Dispatcher $dispatcher
* @return void
*/
public function boot(Dispatcher $dispatcher)
{
$dispatcher->mapUsing(function($command)
{
return Dispatcher::simpleMapping(
$command, 'App\Commands', 'App\Handlers\Commands'
);
});
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class ConfigServiceProvider extends ServiceProvider {
/**
* Overwrite any vendor / package configuration.
*
* This service provider is intended to provide a convenient location for you
* to overwrite any "vendor" or package configuration that you may want to
* modify before the application handles the incoming request / command.
*
* @return void
*/
public function register()
{
config([
//
]);
}
}
...@@ -6,13 +6,13 @@ use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvi ...@@ -6,13 +6,13 @@ use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvi
class EventServiceProvider extends ServiceProvider { class EventServiceProvider extends ServiceProvider {
/** /**
* The event handler mappings for the application. * The event listener mappings for the application.
* *
* @var array * @var array
*/ */
protected $listen = [ protected $listen = [
'event.name' => [ 'App\Events\SomeEvent' => [
'EventListener', 'App\Listeners\EventListener',
], ],
]; ];
......
...@@ -140,8 +140,6 @@ return [ ...@@ -140,8 +140,6 @@ return [
* Application Service Providers... * Application Service Providers...
*/ */
'App\Providers\AppServiceProvider', 'App\Providers\AppServiceProvider',
'App\Providers\BusServiceProvider',
'App\Providers\ConfigServiceProvider',
'App\Providers\EventServiceProvider', 'App\Providers\EventServiceProvider',
'App\Providers\RouteServiceProvider', 'App\Providers\RouteServiceProvider',
......
...@@ -16,8 +16,6 @@ return [ ...@@ -16,8 +16,6 @@ return [
'files' => [ 'files' => [
realpath(__DIR__.'/../app/Providers/AppServiceProvider.php'), realpath(__DIR__.'/../app/Providers/AppServiceProvider.php'),
realpath(__DIR__.'/../app/Providers/BusServiceProvider.php'),
realpath(__DIR__.'/../app/Providers/ConfigServiceProvider.php'),
realpath(__DIR__.'/../app/Providers/EventServiceProvider.php'), realpath(__DIR__.'/../app/Providers/EventServiceProvider.php'),
realpath(__DIR__.'/../app/Providers/RouteServiceProvider.php'), realpath(__DIR__.'/../app/Providers/RouteServiceProvider.php'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment