Browse Source

Use App facade.

Taylor Otwell 10 years ago
parent
commit
bde518b59c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Providers/RouteServiceProvider.php

+ 2 - 1
app/Providers/RouteServiceProvider.php

@@ -1,5 +1,6 @@
 <?php namespace App\Providers;
 
+use App;
 use Illuminate\Routing\RouteServiceProvider as ServiceProvider;
 
 class RouteServiceProvider extends ServiceProvider {
@@ -23,7 +24,7 @@ class RouteServiceProvider extends ServiceProvider {
 	 */
 	public function map()
 	{
-		$this->app->booted(function()
+		App::booted(function()
 		{
 			// Once the application has booted, we will include the default routes
 			// file. This "namespace" helper will load the routes file within a