Use facades.

This commit is contained in:
Taylor Otwell
2014-08-20 17:04:09 -05:00
parent 2ab3d52540
commit 838b20d4a0
3 changed files with 9 additions and 11 deletions

View File

@@ -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
@@ -31,7 +32,7 @@ class RouteServiceProvider extends ServiceProvider {
$this->namespaced(function()
{
require app('path').'/Http/routes.php';
require app_path().'/Http/routes.php';
});
});
}