|
@@ -1,8 +1,8 @@
|
|
|
<?php namespace App\Providers;
|
|
|
|
|
|
use Illuminate\Routing\Router;
|
|
|
-use Illuminate\Support\ServiceProvider;
|
|
|
use Illuminate\Routing\Stack\Builder as Stack;
|
|
|
+use Illuminate\Foundation\Support\Providers\AppServiceProvider as ServiceProvider;
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider {
|
|
|
|
|
@@ -31,36 +31,4 @@ class AppServiceProvider extends ServiceProvider {
|
|
|
'Illuminate\Session\Middleware\Writer',
|
|
|
];
|
|
|
|
|
|
- /**
|
|
|
- * Bootstrap any necessary services.
|
|
|
- *
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function boot()
|
|
|
- {
|
|
|
- // This service provider is a convenient place to register your services
|
|
|
- // in the IoC container. If you wish, you may make additional methods
|
|
|
- // or service providers to keep the code more focused and granular.
|
|
|
-
|
|
|
- $this->app->stack(function(Stack $stack, Router $router)
|
|
|
- {
|
|
|
- return $stack
|
|
|
- ->middleware($this->stack)
|
|
|
- ->then(function($request) use ($router)
|
|
|
- {
|
|
|
- return $router->dispatch($request);
|
|
|
- });
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Register the service provider.
|
|
|
- *
|
|
|
- * @return void
|
|
|
- */
|
|
|
- public function register()
|
|
|
- {
|
|
|
- //
|
|
|
- }
|
|
|
-
|
|
|
}
|