1 | <?php |
||
17 | class ApiKeyAuthenticator extends AbstractGuardAuthenticator |
||
18 | { |
||
19 | /** |
||
20 | * @var ManagerRegistry |
||
21 | */ |
||
22 | private $registry; |
||
23 | /** |
||
24 | * @var Logger |
||
25 | 87 | */ |
|
26 | private $logger; |
||
27 | 87 | ||
28 | 87 | public function __construct(ManagerRegistry $registry, Logger $logger) |
|
29 | { |
||
30 | $this->registry = $registry; |
||
31 | $this->logger = $logger; |
||
32 | } |
||
33 | 82 | ||
34 | /** |
||
35 | 82 | * {@inheritdoc} |
|
36 | 61 | */ |
|
37 | public function getCredentials(Request $request) |
||
47 | 21 | ||
48 | /** |
||
49 | 21 | * {@inheritdoc} |
|
50 | */ |
||
51 | 21 | public function getUser($credentials, UserProviderInterface $userProvider) |
|
60 | 14 | ||
61 | /** |
||
62 | 14 | * {@inheritdoc} |
|
63 | */ |
||
64 | public function checkCredentials($credentials, UserInterface $user) |
||
68 | 14 | ||
69 | /** |
||
70 | 14 | * {@inheritdoc} |
|
71 | */ |
||
72 | public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) |
||
76 | 8 | ||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | 8 | */ |
|
80 | public function onAuthenticationFailure(Request $request, AuthenticationException $exception) |
||
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | public function start(Request $request, AuthenticationException $authException = null) |
||
120 | |||
121 | /** |
||
122 | * {@inheritdoc} |
||
123 | */ |
||
124 | public function supportsRememberMe() |
||
128 | |||
129 | /** |
||
130 | * {@inheritdoc} |
||
131 | */ |
||
132 | private function writeLogger($client) |
||
138 | } |
||
139 |