1 | <?php |
||
24 | final class TokenEndpointExtensionManager |
||
25 | { |
||
26 | /** |
||
27 | * @var TokenEndpointExtension[] |
||
28 | */ |
||
29 | private $extensions = []; |
||
30 | |||
31 | /** |
||
32 | * @param TokenEndpointExtension $accessTokenParameterExtension |
||
33 | * |
||
34 | * @return TokenEndpointExtensionManager |
||
35 | */ |
||
36 | public function add(TokenEndpointExtension $accessTokenParameterExtension): self |
||
42 | |||
43 | /** |
||
44 | * @param ServerRequestInterface $request |
||
45 | * @param GrantTypeData $grantTypeData |
||
46 | * @param GrantType $grantType |
||
47 | * |
||
48 | * @return GrantTypeData |
||
49 | * |
||
50 | * @throws OAuth2Exception |
||
51 | */ |
||
52 | public function handleBeforeAccessTokenIssuance(ServerRequestInterface $request, GrantTypeData $grantTypeData, GrantType $grantType): GrantTypeData |
||
56 | |||
57 | /** |
||
58 | * @param Client $client |
||
59 | * @param ResourceOwner $resourceOwner |
||
60 | * @param AccessToken $accessToken |
||
61 | * |
||
62 | * @return array |
||
63 | * |
||
64 | * @throws OAuth2Exception |
||
65 | */ |
||
66 | public function handleAfterAccessTokenIssuance(Client $client, ResourceOwner $resourceOwner, AccessToken $accessToken): array |
||
70 | |||
71 | /** |
||
72 | * @param int $index |
||
73 | * |
||
74 | * @return callable |
||
75 | * |
||
76 | * @throws OAuth2Exception |
||
77 | */ |
||
78 | private function getCallableBeforeAccessTokenIssuance(int $index): callable |
||
91 | |||
92 | /** |
||
93 | * @param int $index |
||
94 | * |
||
95 | * @return callable |
||
96 | * |
||
97 | * @throws OAuth2Exception |
||
98 | */ |
||
99 | private function getCallableAfterAccessTokenIssuance(int $index): callable |
||
112 | } |
||
113 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.