update v1.0.6
This commit is contained in:
		| @@ -1,32 +1,28 @@ | ||||
| <?php namespace App\Providers; | ||||
| <?php | ||||
|  | ||||
| namespace App\Providers; | ||||
|  | ||||
| use Illuminate\Support\ServiceProvider; | ||||
|  | ||||
| use App\Http\Controllers\WelcomeController; | ||||
|  | ||||
| class AppServiceProvider extends ServiceProvider { | ||||
|  | ||||
|     /** | ||||
|      * Register any application services. | ||||
|      * | ||||
|      * This service provider is a great spot to register your various container | ||||
|      * bindings with the application. As you can see, we are registering our | ||||
|      * "Registrar" implementation here. You can add your own bindings too! | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function register() { | ||||
|         $this->app->bind( | ||||
|                 'Illuminate\Contracts\Auth\Registrar', 'App\Services\Registrar' | ||||
|         ); | ||||
|     } | ||||
|  | ||||
| 	/** | ||||
| 	 * Register any application services. | ||||
| 	 * | ||||
| 	 * This service provider is a great spot to register your various container | ||||
| 	 * bindings with the application. As you can see, we are registering our | ||||
| 	 * "Registrar" implementation here. You can add your own bindings too! | ||||
| 	 * | ||||
| 	 * @return void | ||||
| 	 */ | ||||
| 	public function register() | ||||
| 	{ | ||||
| 		$this->app->bind( | ||||
| 			'Illuminate\Contracts\Auth\Registrar', | ||||
| 			'App\Services\Registrar' | ||||
| 		); | ||||
| 	} | ||||
|  | ||||
|  | ||||
|  | ||||
| 	public function boot() { | ||||
|     public function boot() { | ||||
|         // Please note the different namespace  | ||||
|         // and please add a \ in front of your classes in the global namespace | ||||
|         \Event::listen('cron.collectJobs', function() { | ||||
| @@ -47,6 +43,4 @@ class AppServiceProvider extends ServiceProvider { | ||||
|         }); | ||||
|     } | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -1,34 +1,33 @@ | ||||
| <?php namespace App\Providers; | ||||
| <?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' | ||||
| 			); | ||||
| 		}); | ||||
| 	} | ||||
|     /** | ||||
|      * 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() | ||||
| 	{ | ||||
| 		// | ||||
| 	} | ||||
|     /** | ||||
|      * Register any application services. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function register() { | ||||
|         // | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -1,23 +1,24 @@ | ||||
| <?php namespace App\Providers; | ||||
| <?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([ | ||||
| 			// | ||||
| 		]); | ||||
| 	} | ||||
|     /** | ||||
|      * 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([ | ||||
|                 // | ||||
|         ]); | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -1,32 +1,33 @@ | ||||
| <?php namespace App\Providers; | ||||
| <?php | ||||
|  | ||||
| namespace App\Providers; | ||||
|  | ||||
| use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; | ||||
| use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; | ||||
|  | ||||
| class EventServiceProvider extends ServiceProvider { | ||||
|  | ||||
| 	/** | ||||
| 	 * The event handler mappings for the application. | ||||
| 	 * | ||||
| 	 * @var array | ||||
| 	 */ | ||||
| 	protected $listen = [ | ||||
| 		'event.name' => [ | ||||
| 			'EventListener', | ||||
| 		], | ||||
| 	]; | ||||
|     /** | ||||
|      * The event handler mappings for the application. | ||||
|      * | ||||
|      * @var array | ||||
|      */ | ||||
|     protected $listen = [ | ||||
|         'event.name' => [ | ||||
|             'EventListener', | ||||
|         ], | ||||
|     ]; | ||||
|  | ||||
| 	/** | ||||
| 	 * Register any other events for your application. | ||||
| 	 * | ||||
| 	 * @param  \Illuminate\Contracts\Events\Dispatcher  $events | ||||
| 	 * @return void | ||||
| 	 */ | ||||
| 	public function boot(DispatcherContract $events) | ||||
| 	{ | ||||
| 		parent::boot($events); | ||||
|     /** | ||||
|      * Register any other events for your application. | ||||
|      * | ||||
|      * @param  \Illuminate\Contracts\Events\Dispatcher  $events | ||||
|      * @return void | ||||
|      */ | ||||
|     public function boot(DispatcherContract $events) { | ||||
|         parent::boot($events); | ||||
|  | ||||
| 		// | ||||
| 	} | ||||
|         // | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -1,44 +1,43 @@ | ||||
| <?php namespace App\Providers; | ||||
| <?php | ||||
|  | ||||
| namespace App\Providers; | ||||
|  | ||||
| use Illuminate\Routing\Router; | ||||
| use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; | ||||
|  | ||||
| class RouteServiceProvider extends ServiceProvider { | ||||
|  | ||||
| 	/** | ||||
| 	 * This namespace is applied to the controller routes in your routes file. | ||||
| 	 * | ||||
| 	 * In addition, it is set as the URL generator's root namespace. | ||||
| 	 * | ||||
| 	 * @var string | ||||
| 	 */ | ||||
| 	protected $namespace = 'App\Http\Controllers'; | ||||
|     /** | ||||
|      * This namespace is applied to the controller routes in your routes file. | ||||
|      * | ||||
|      * In addition, it is set as the URL generator's root namespace. | ||||
|      * | ||||
|      * @var string | ||||
|      */ | ||||
|     protected $namespace = 'App\Http\Controllers'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Define your route model bindings, pattern filters, etc. | ||||
| 	 * | ||||
| 	 * @param  \Illuminate\Routing\Router  $router | ||||
| 	 * @return void | ||||
| 	 */ | ||||
| 	public function boot(Router $router) | ||||
| 	{ | ||||
| 		// | ||||
| 		 | ||||
| 		parent::boot($router); | ||||
| 	} | ||||
|     /** | ||||
|      * Define your route model bindings, pattern filters, etc. | ||||
|      * | ||||
|      * @param  \Illuminate\Routing\Router  $router | ||||
|      * @return void | ||||
|      */ | ||||
|     public function boot(Router $router) { | ||||
|         // | ||||
|  | ||||
| 	/** | ||||
| 	 * Define the routes for the application. | ||||
| 	 * | ||||
| 	 * @param  \Illuminate\Routing\Router  $router | ||||
| 	 * @return void | ||||
| 	 */ | ||||
| 	public function map(Router $router) | ||||
| 	{ | ||||
| 		$router->group(['namespace' => $this->namespace], function($router) | ||||
| 		{ | ||||
| 			require app_path('Http/routes.php'); | ||||
| 		}); | ||||
| 	} | ||||
|         parent::boot($router); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Define the routes for the application. | ||||
|      * | ||||
|      * @param  \Illuminate\Routing\Router  $router | ||||
|      * @return void | ||||
|      */ | ||||
|     public function map(Router $router) { | ||||
|         $router->group(['namespace' => $this->namespace], function($router) { | ||||
|             require app_path('Http/routes.php'); | ||||
|         }); | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sujitprasad
					sujitprasad