| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
| 27 | {
|
||
| 28 | $options = $options ?? $this->getServiceOptions($container, $requestedName); |
||
| 29 | |||
| 30 | $entityManager = $options['entity_manager'] ?? EntityManagerInterface::class; |
||
| 31 | $purger = $options['purger'] ?? ORMPurger::class; |
||
| 32 | |||
| 33 | return new Executor( |
||
| 34 | $this->getService($container, $entityManager, $requestedName), |
||
| 35 | $this->getService($container, $purger, $requestedName) |
||
| 36 | ); |
||
| 39 |