1 | <?php |
||
8 | final class AuthenticationStack implements AuthenticationInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var AuthenticationInterface[] |
||
12 | */ |
||
13 | private $authentications = []; |
||
14 | |||
15 | /** |
||
16 | * @param AuthenticationInterface[] $authentications |
||
17 | */ |
||
18 | public function __construct(array $authentications) |
||
24 | |||
25 | /** |
||
26 | * @param AuthenticationInterface $authentication |
||
27 | */ |
||
28 | private function addAuthentication(AuthenticationInterface $authentication) |
||
32 | |||
33 | /** |
||
34 | * @param Request $request |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | public function isAuthenticated(Request $request): bool |
||
48 | |||
49 | /** |
||
50 | * @param Request $request |
||
51 | * |
||
52 | * @return UserInterface|null |
||
53 | */ |
||
54 | public function getAuthenticatedUser(Request $request) |
||
64 | } |
||
65 |