| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | protected function registerCommand(): void |
||
| 19 | { |
||
| 20 | $this->app->singleton( |
||
| 21 | 'command.laroute.generate', |
||
| 22 | function ($app) { |
||
| 23 | $config = $app['config']; |
||
| 24 | $routes = new Collection($app['router']->getRoutes(), $config->get('laroute.filter', 'all'), $config->get('laroute.action_namespace', '')); |
||
| 25 | $generator = $app->make('Lord\Laroute\Generators\GeneratorInterface'); |
||
| 26 | |||
| 27 | return new LarouteGeneratorCommand($config, $routes, $generator); |
||
| 28 | } |
||
| 29 | ); |
||
| 30 | |||
| 31 | $this->commands('command.laroute.generate'); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |