Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | 5 | public function __invoke(ContainerInterface $container): ErrorHandlerMiddleware |
|
34 | { |
||
35 | 5 | $errorHandler = $container->get(ErrorHandler::class); |
|
36 | 5 | $throwableResponseFactory = $container->get(ThrowableResponseFactoryInterface::class); |
|
37 | |||
38 | 5 | return new ErrorHandlerMiddleware($errorHandler, $throwableResponseFactory); |
|
39 | } |
||
41 |