1 | <?php |
||
14 | final class AuthenticatorMount implements IAuthenticator |
||
15 | { |
||
16 | use SmartObject; |
||
17 | |||
18 | public const SEPARATOR = '://'; |
||
19 | |||
20 | /** @var \Nette\Security\IAuthenticator[] */ |
||
21 | private $authenticators; |
||
22 | |||
23 | /** |
||
24 | * @param \Nette\Security\IAuthenticator[] $authenticators |
||
25 | */ |
||
26 | public function __construct(array $authenticators) |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function authenticate(array $credentials): IIdentity |
||
57 | |||
58 | /** |
||
59 | * @param string $name |
||
60 | * |
||
61 | * @return \Nette\Security\IAuthenticator |
||
62 | * @throws \SixtyEightPublishers\User\Common\Exception\InvalidArgumentException |
||
63 | */ |
||
64 | public function getAuthenticator(string $name): IAuthenticator |
||
75 | |||
76 | /** |
||
77 | * @param string $name |
||
78 | * @param \Nette\Security\IAuthenticator $authenticator |
||
79 | * |
||
80 | * @return void |
||
81 | */ |
||
82 | private function addAuthenticator(string $name, IAuthenticator $authenticator): void |
||
86 | |||
87 | /** |
||
88 | * @param string $username |
||
89 | * |
||
90 | * @return array |
||
91 | */ |
||
92 | private function getPrefixAndUsername(string $username): array |
||
100 | } |
||
101 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.