Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
11 | class ConsoleDependencyProvider extends AbstractDependencyProvider |
||
12 | { |
||
13 | public const COMMAND_COLLECTION = 'command.collection'; |
||
14 | |||
15 | /** |
||
16 | * @param \Xervice\Core\Business\Model\Dependency\DependencyContainerInterface $container |
||
17 | * |
||
18 | * @return \Xervice\Core\Business\Model\Dependency\DependencyContainerInterface |
||
19 | */ |
||
20 | 1 | public function handleDependencies(DependencyContainerInterface $container): DependencyContainerInterface |
|
21 | { |
||
22 | $container[self::COMMAND_COLLECTION] = function () { |
||
23 | 1 | return new CommandCollection( |
|
24 | 1 | $this->getCommandList() |
|
25 | ); |
||
26 | }; |
||
27 | |||
28 | 1 | return $container; |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return array |
||
33 | */ |
||
34 | protected function getCommandList() : array |
||
37 | } |
||
38 | } |
||
39 |