| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 13 | public function process(ContainerBuilder $container) |
||
| 14 | { |
||
| 15 | $ids = array_keys($container->findTaggedServiceIds('console.command', true)); |
||
| 16 | |||
| 17 | $refs = array_map( |
||
| 18 | function ($id) { |
||
| 19 | return new Reference($id); |
||
| 20 | }, |
||
| 21 | $ids |
||
| 22 | ); |
||
| 23 | |||
| 24 | $console = $container->getDefinition(Application::class); |
||
| 25 | $console->addMethodCall('addCommands', [$refs]); |
||
| 26 | } |
||
| 28 |