| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 72 | public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null) |
|
| 20 | { |
||
| 21 | 72 | $options = $this->getOptions($container, 'entitymanager'); |
|
| 22 | 72 | $connection = $container->get($options->getConnection()); |
|
| 23 | 72 | $config = $container->get($options->getConfiguration()); |
|
| 24 | |||
| 25 | // initializing the resolver |
||
| 26 | // @todo should actually attach it to a fetched event manager here, and not |
||
| 27 | // rely on its factory code |
||
| 28 | 72 | $container->get($options->getEntityResolver()); |
|
| 29 | |||
| 30 | 72 | return EntityManager::create($connection, $config); |
|
| 31 | } |
||
| 32 | |||
| 48 |