| 1 | <?php |
||
| 10 | final class AuthenticationErrorResponseMiddleware |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var AuthenticationInterface |
||
| 14 | */ |
||
| 15 | private $authentication; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var AuthenticationErrorHandlerInterface |
||
| 19 | */ |
||
| 20 | private $errorResponseHandler; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param AuthenticationInterface $authentication |
||
| 24 | * @param AuthenticationErrorHandlerInterface $errorResponseHandler |
||
| 25 | */ |
||
| 26 | 3 | public function __construct( |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @param Request $request |
||
| 36 | * @param Response $response |
||
| 37 | * @param callable|null $next |
||
| 38 | * |
||
| 39 | * @return Response |
||
| 40 | */ |
||
| 41 | 3 | public function __invoke(Request $request, Response $response, callable $next = null) |
|
| 53 | } |
||
| 54 |