protected function registerRouteScanCommand() { $this->app->singleton('command.route.scan', function ($app) { return new RouteScanCommand($app['files'], $this); }); }