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