| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 1 | public function load(Application $cliApp, ContainerBuilder $container): void |
|
| 26 | { |
||
| 27 | 1 | $commandServices = $container->findTaggedServiceIds(self::COMMAND_TAG); |
|
| 28 | |||
| 29 | 1 | foreach ($commandServices as $commandId => $tags) { |
|
| 30 | /** @var Command $command */ |
||
| 31 | 1 | $command = $container->get($commandId); |
|
| 32 | 1 | $cliApp->add($command); |
|
| 33 | } |
||
| 36 |