| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | protected function registerCommand() |
||
| 32 | { |
||
| 33 | $this->app->singleton( |
||
| 34 | 'command.laroute.generate', |
||
| 35 | function ($app) { |
||
| 36 | $config = $app['config']; |
||
| 37 | $routes = new Collection($app['router']->getRoutes(), $config->get('laroute.filter', 'all'), $config->get('laroute.action_namespace', '')); |
||
|
|
|||
| 38 | $generator = $app->make('Lord\Laroute\Generators\GeneratorInterface'); |
||
| 39 | |||
| 40 | return new LarouteGeneratorCommand($config, $routes, $generator); |
||
| 41 | } |
||
| 42 | ); |
||
| 43 | |||
| 44 | $this->commands('command.laroute.generate'); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.