| 1 | <?php |
||
| 9 | final class AuthenticationMiddleware |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var AuthenticationInterface |
||
| 13 | */ |
||
| 14 | private $auth; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param AuthenticationInterface $auth |
||
| 18 | */ |
||
| 19 | public function __construct(AuthenticationInterface $auth) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param Request $request |
||
| 26 | * @param Response $response |
||
| 27 | * @param callable $next |
||
| 28 | * |
||
| 29 | * @return Response |
||
| 30 | * |
||
| 31 | * @throws HttpException |
||
| 32 | */ |
||
| 33 | public function __invoke(Request $request, Response $response, callable $next) |
||
| 43 | } |
||
| 44 |