Commit 2b05ce3b authored by Taylor Otwell's avatar Taylor Otwell

Just use facades in service providers.

parent ebc1be01
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
namespace App\Providers; namespace App\Providers;
use Illuminate\Contracts\Auth\Access\Gate as GateContract; use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider class AuthServiceProvider extends ServiceProvider
...@@ -19,12 +19,11 @@ class AuthServiceProvider extends ServiceProvider ...@@ -19,12 +19,11 @@ class AuthServiceProvider extends ServiceProvider
/** /**
* Register any application authentication / authorization services. * Register any application authentication / authorization services.
* *
* @param \Illuminate\Contracts\Auth\Access\Gate $gate
* @return void * @return void
*/ */
public function boot(GateContract $gate) public function boot()
{ {
$this->registerPolicies($gate); $this->registerPolicies();
// //
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
namespace App\Providers; namespace App\Providers;
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; use Illuminate\Support\Facades\Event;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider class EventServiceProvider extends ServiceProvider
...@@ -19,14 +19,13 @@ class EventServiceProvider extends ServiceProvider ...@@ -19,14 +19,13 @@ class EventServiceProvider extends ServiceProvider
]; ];
/** /**
* Register any other events for your application. * Register any events for your application.
* *
* @param \Illuminate\Contracts\Events\Dispatcher $events
* @return void * @return void
*/ */
public function boot(DispatcherContract $events) public function boot()
{ {
parent::boot($events); parent::boot();
// //
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
namespace App\Providers; namespace App\Providers;
use Illuminate\Routing\Router; use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider class RouteServiceProvider extends ServiceProvider
...@@ -19,25 +19,23 @@ class RouteServiceProvider extends ServiceProvider ...@@ -19,25 +19,23 @@ class RouteServiceProvider extends ServiceProvider
/** /**
* Define your route model bindings, pattern filters, etc. * Define your route model bindings, pattern filters, etc.
* *
* @param \Illuminate\Routing\Router $router
* @return void * @return void
*/ */
public function boot(Router $router) public function boot()
{ {
// //
parent::boot($router); parent::boot();
} }
/** /**
* Define the routes for the application. * Define the routes for the application.
* *
* @param \Illuminate\Routing\Router $router
* @return void * @return void
*/ */
public function map(Router $router) public function map()
{ {
$this->mapWebRoutes($router); $this->mapWebRoutes();
// //
} }
...@@ -47,12 +45,11 @@ class RouteServiceProvider extends ServiceProvider ...@@ -47,12 +45,11 @@ class RouteServiceProvider extends ServiceProvider
* *
* These routes all receive session state, CSRF protection, etc. * These routes all receive session state, CSRF protection, etc.
* *
* @param \Illuminate\Routing\Router $router
* @return void * @return void
*/ */
protected function mapWebRoutes(Router $router) protected function mapWebRoutes()
{ {
$router->group([ Route::group([
'namespace' => $this->namespace, 'middleware' => 'web', 'namespace' => $this->namespace, 'middleware' => 'web',
], function ($router) { ], function ($router) {
require app_path('Http/routes.php'); require app_path('Http/routes.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