Skip to content

Commit

Permalink
Update LarouteServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronlord authored Jan 24, 2017
1 parent e4cc6bd commit b9a905e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LarouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ protected function registerCompiler()
*/
protected function registerCommand()
{
$this->app['command.laroute.generate'] = $this->app->share(
$this->app->singleton(
'command.laroute.generate',
function ($app) {
$config = $app['config'];
$routes = new Routes($app['router']->getRoutes(), $config->get('laroute.filter', 'all'), $config->get('laroute.action_namespace', ''));
Expand Down

0 comments on commit b9a905e

Please sign in to comment.