1 | <?php |
||
20 | class AccessTokenAuthenticator extends AbstractGuardAuthenticator |
||
21 | { |
||
22 | /** |
||
23 | * @var OAuthServer |
||
24 | */ |
||
25 | protected $oauthServer; |
||
26 | |||
27 | /** |
||
28 | * @var AccessTokenInterface |
||
29 | */ |
||
30 | protected $currentAccessToken; |
||
31 | |||
32 | /** |
||
33 | * Construct. |
||
34 | * |
||
35 | * @param OAuthServer $oauthServer |
||
36 | */ |
||
37 | public function __construct(OAuthServer $oauthServer) |
||
41 | |||
42 | /** |
||
43 | * @see GuardAuthenticatorInterface::getCredentials() |
||
44 | */ |
||
45 | public function getCredentials(Request $request) |
||
74 | |||
75 | /** |
||
76 | * @see GuardAuthenticatorInterface::getUser() |
||
77 | */ |
||
78 | public function getUser($accessToken, UserProviderInterface $userProvider) |
||
82 | |||
83 | /** |
||
84 | * @see GuardAuthenticatorInterface::checkCredentials() |
||
85 | */ |
||
86 | public function checkCredentials($accessToken, UserInterface $user) |
||
95 | |||
96 | /** |
||
97 | * @see GuardAuthenticatorInterface::onAuthenticationSuccess() |
||
98 | */ |
||
99 | public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) |
||
105 | |||
106 | /** |
||
107 | * @see GuardAuthenticatorInterface::onAuthenticationFailure() |
||
108 | */ |
||
109 | public function onAuthenticationFailure(Request $request, AuthenticationException $exception) |
||
116 | |||
117 | /** |
||
118 | * @see GuardAuthenticatorInterface::onAuthenticationFailure() |
||
119 | */ |
||
120 | public function start(Request $request, AuthenticationException $authException = null) |
||
127 | |||
128 | /** |
||
129 | * @see GuardAuthenticatorInterface::supportsRememberMe() |
||
130 | */ |
||
131 | public function supportsRememberMe() |
||
135 | } |
||
136 |
As per the PSR-2 coding standard, there must not be a space in front of the colon in case statements.
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.