| Conditions | 3 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function __invoke(ContainerInterface $container): MiddlewareInterface |
||
| 19 | { |
||
| 20 | $logger = $this->getConfig($container)['logger'] ?? null; |
||
| 21 | |||
| 22 | return new DoctrineOpenTransactionLoggerMiddleware( |
||
| 23 | $this->getManagerRegistry($container), |
||
| 24 | $this->getName(), |
||
| 25 | $logger && $container->has($logger) ? $container->get($logger) : null, |
||
| 26 | ); |
||
| 29 |