| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 1 | public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null) |
|
| 19 | { |
||
| 20 | 1 | $container = $this->container($container); |
|
| 21 | |||
| 22 | 1 | $useContext = isset($options['use_context']) ? (bool) $options['use_context'] : false; |
|
| 23 | |||
| 24 | 1 | return new UniqueObject($this->merge($options, [ |
|
| 25 | 1 | 'object_manager' => $this->getObjectManager($container, $options), |
|
| 26 | 1 | 'use_context' => $useContext, |
|
| 27 | 1 | 'object_repository' => $this->getRepository($container, $options), |
|
| 28 | 1 | 'fields' => $this->getFields($options), |
|
| 29 | ])); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |