Embrace contracts.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php namespace App\Providers;
|
||||
|
||||
use App, URL;
|
||||
use Illuminate\Contracts\Routing\UrlGenerator;
|
||||
use Illuminate\Routing\RouteServiceProvider as ServiceProvider;
|
||||
|
||||
class RouteServiceProvider extends ServiceProvider {
|
||||
@@ -10,11 +10,12 @@ class RouteServiceProvider extends ServiceProvider {
|
||||
*
|
||||
* Register any model bindings or pattern based filters.
|
||||
*
|
||||
* @param UrlGenerator $url
|
||||
* @return void
|
||||
*/
|
||||
public function before()
|
||||
public function before(UrlGenerator $url)
|
||||
{
|
||||
URL::setRootControllerNamespace(
|
||||
$url->setRootControllerNamespace(
|
||||
trim(config('namespaces.controllers'), '\\')
|
||||
);
|
||||
}
|
||||
@@ -26,7 +27,7 @@ class RouteServiceProvider extends ServiceProvider {
|
||||
*/
|
||||
public function map()
|
||||
{
|
||||
App::booted(function()
|
||||
$this->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
|
||||
|
||||
Reference in New Issue
Block a user