Conditions | 3 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | 1 | public function __invoke( |
|
21 | ContainerInterface $container, |
||
22 | $requestedName, |
||
23 | ?array $options = null |
||
24 | ): Configuration { |
||
25 | 1 | $globalConfiguration = $container->get('configuration'); |
|
26 | |||
27 | 1 | $configuration = []; |
|
28 | if ( |
||
29 | 1 | isset($globalConfiguration['doctrine_dynamic']) |
|
30 | 1 | && is_array($globalConfiguration['doctrine_dynamic']) |
|
31 | ) { |
||
32 | 1 | $configuration = $globalConfiguration['doctrine_dynamic']; |
|
33 | } |
||
34 | |||
35 | 1 | return $this->factory($configuration); |
|
36 | } |
||
38 |