Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0116 |
Changes | 0 |
1 | <?php |
||
25 | 2 | public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null) |
|
26 | { |
||
27 | 2 | $options = $this->getOptions($container, 'authentication'); |
|
28 | 2 | assert($options instanceof Authentication); |
|
29 | |||
30 | 2 | $objectManager = $options->getObjectManager(); |
|
31 | 2 | if (is_string($objectManager)) { |
|
32 | $options->setObjectManager($container->get($objectManager)); |
||
33 | } |
||
34 | |||
35 | 2 | return new ObjectRepository($options); |
|
36 | } |
||
37 | |||
53 |