Browse Source

Write a base app service provider.

Taylor Otwell 10 years ago
parent
commit
43e8c60a11
1 changed files with 1 additions and 33 deletions
  1. 1 33
      app/Providers/AppServiceProvider.php

+ 1 - 33
app/Providers/AppServiceProvider.php

@@ -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()
-	{
-		//
-	}
-
 }