| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null) |
||
| 20 | { |
||
| 21 | $options = $this->getOptions($container, 'entitymanager'); |
||
| 22 | $connection = $container->get($options->getConnection()); |
||
| 23 | $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 | $container->get($options->getEntityResolver()); |
||
| 29 | |||
| 30 | return EntityManager::create($connection, $config); |
||
| 31 | } |
||
| 32 | |||
| 48 |