| 1 | <?php |
||
| 10 | final class AuthenticationStack implements AuthenticationInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var AuthenticationInterface[] |
||
| 14 | */ |
||
| 15 | private $authentications = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param AuthenticationInterface[] $authentications |
||
| 19 | */ |
||
| 20 | 4 | public function __construct(array $authentications) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param AuthenticationInterface $authentication |
||
| 29 | */ |
||
| 30 | 4 | private function addAuthentication(AuthenticationInterface $authentication) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param Request $request |
||
| 37 | * |
||
| 38 | * @return bool |
||
| 39 | */ |
||
| 40 | 2 | public function isAuthenticated(Request $request): bool |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @param Request $request |
||
| 53 | * |
||
| 54 | * @return UserInterface|null |
||
| 55 | */ |
||
| 56 | 2 | public function getAuthenticatedUser(Request $request) |
|
| 66 | } |
||
| 67 |