Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
20 | public function provision( |
||
21 | Injector $injector, |
||
22 | ConfigProviderInterface $configProvider, |
||
23 | ServiceDefinitionInterface $serviceDefinition |
||
24 | ): void { |
||
25 | $commandConfigs = (array)$configProvider->get('services.daikon.command_router.commands', []); |
||
26 | $injector |
||
27 | ->share(CommandRouter::class) |
||
28 | ->delegate( |
||
29 | CommandRouter::class, |
||
30 | function (UnitOfWorkMap $uowMap) use ($injector, $commandConfigs): CommandRouter { |
||
31 | $handlerMap = []; |
||
45 |