1 | <?php |
||
11 | class AuthenticationMiddleware implements HTTPMiddleware |
||
12 | { |
||
13 | use Configurable; |
||
14 | |||
15 | /** |
||
16 | * @var AuthenticationHandler |
||
17 | */ |
||
18 | protected $authenticationHandler; |
||
19 | |||
20 | /** |
||
21 | * @return AuthenticationHandler |
||
22 | */ |
||
23 | public function getAuthenticationHandler() |
||
27 | |||
28 | /** |
||
29 | * @param AuthenticationHandler $authenticationHandler |
||
30 | * @return $this |
||
31 | */ |
||
32 | public function setAuthenticationHandler(AuthenticationHandler $authenticationHandler) |
||
37 | |||
38 | /** |
||
39 | * Identify the current user from the request |
||
40 | * |
||
41 | * @param HTTPRequest $request |
||
42 | * @param callable $delegate |
||
43 | * @return HTTPResponse |
||
44 | */ |
||
45 | public function process(HTTPRequest $request, callable $delegate) |
||
62 | } |
||
63 |