| Conditions | 1 |
| Paths | 1 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 4 | public function create(ContainerInterface $container): ErrorHandlerMiddleware |
|
| 23 | { |
||
| 24 | 4 | $errorHandler = new ErrorHandlerMiddleware(new ErrorJsonResponseGenerator($container->get('config')['debug'])); |
|
| 25 | 2 | $errorHandler->addListener(new LogErrorListener($container->get(LoggerInterface::class))); |
|
| 26 | 2 | return $errorHandler; |
|
| 27 | } |
||
| 29 |