Created
September 30, 2014 10:51
-
-
Save alnutile/fa77f57916e8b4cff6cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php namespace BehatEditor\Providers; | |
| use App, URL; | |
| use Illuminate\Routing\RouteServiceProvider as ServiceProvider; | |
| class RouteServiceProvider extends ServiceProvider { | |
| /** | |
| * Called before routes are registered. | |
| * | |
| * Register any model bindings or pattern based filters. | |
| * | |
| * @return void | |
| */ | |
| public function before() | |
| { | |
| URL::setRootControllerNamespace( | |
| trim(config('namespaces.controller'), '\\') | |
| ); | |
| } | |
| /** | |
| * Define the routes for the application. | |
| * | |
| * @return void | |
| */ | |
| public function map() | |
| { | |
| 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 | |
| // route group which automatically sets the controller namespace. | |
| $this->namespaced(function() | |
| { | |
| require app_path().'/Http/routes.php'; | |
| }); | |
| }); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment