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) |
||
93 | |||
94 | /** |
||
95 | * @see GuardAuthenticatorInterface::onAuthenticationSuccess() |
||
96 | */ |
||
97 | public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) |
||
103 | |||
104 | /** |
||
105 | * @see GuardAuthenticatorInterface::onAuthenticationFailure() |
||
106 | */ |
||
107 | public function onAuthenticationFailure(Request $request, AuthenticationException $exception) |
||
114 | |||
115 | /** |
||
116 | * @see GuardAuthenticatorInterface::onAuthenticationFailure() |
||
117 | */ |
||
118 | public function start(Request $request, AuthenticationException $authException = null) |
||
122 | |||
123 | /** |
||
124 | * @see GuardAuthenticatorInterface::supportsRememberMe() |
||
125 | */ |
||
126 | public function supportsRememberMe() |
||
130 | } |
||
131 |
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.