1 | <?php |
||
24 | class AuthorizationServer implements EmitterAwareInterface |
||
25 | { |
||
26 | use EmitterAwareTrait; |
||
27 | |||
28 | /** |
||
29 | * @var GrantTypeInterface[] |
||
30 | */ |
||
31 | protected $enabledGrantTypes = []; |
||
32 | |||
33 | /** |
||
34 | * @var \DateInterval[] |
||
35 | */ |
||
36 | protected $grantTypeAccessTokenTTL = []; |
||
37 | |||
38 | /** |
||
39 | * @var CryptKey |
||
40 | */ |
||
41 | protected $privateKey; |
||
42 | |||
43 | /** |
||
44 | * @var CryptKey |
||
45 | */ |
||
46 | protected $publicKey; |
||
47 | |||
48 | /** |
||
49 | * @var null|ResponseTypeInterface |
||
50 | */ |
||
51 | protected $responseType; |
||
52 | |||
53 | /** |
||
54 | * @var ClientRepositoryInterface |
||
55 | */ |
||
56 | private $clientRepository; |
||
57 | |||
58 | /** |
||
59 | * @var AccessTokenRepositoryInterface |
||
60 | */ |
||
61 | private $accessTokenRepository; |
||
62 | |||
63 | /** |
||
64 | * @var ScopeRepositoryInterface |
||
65 | */ |
||
66 | private $scopeRepository; |
||
67 | |||
68 | /** |
||
69 | * @var string |
||
70 | */ |
||
71 | private $encryptionKey; |
||
72 | |||
73 | /** |
||
74 | * New server instance. |
||
75 | * |
||
76 | * @param ClientRepositoryInterface $clientRepository |
||
77 | * @param AccessTokenRepositoryInterface $accessTokenRepository |
||
78 | * @param ScopeRepositoryInterface $scopeRepository |
||
79 | * @param CryptKey|string $privateKey |
||
80 | * @param string $encryptionKey |
||
81 | * @param null|ResponseTypeInterface $responseType |
||
82 | */ |
||
83 | public function __construct( |
||
103 | |||
104 | /** |
||
105 | * Enable a grant type on the server. |
||
106 | * |
||
107 | * @param GrantTypeInterface $grantType |
||
108 | * @param null|\DateInterval $accessTokenTTL |
||
109 | */ |
||
110 | public function enableGrantType(GrantTypeInterface $grantType, \DateInterval $accessTokenTTL = null) |
||
127 | |||
128 | /** |
||
129 | * Validate an authorization request |
||
130 | * |
||
131 | * @param ServerRequestInterface $request |
||
132 | * |
||
133 | * @throws OAuthServerException |
||
134 | * |
||
135 | * @return AuthorizationRequest |
||
136 | */ |
||
137 | public function validateAuthorizationRequest(ServerRequestInterface $request) |
||
147 | |||
148 | /** |
||
149 | * Complete an authorization request |
||
150 | * |
||
151 | * @param AuthorizationRequest $authRequest |
||
152 | * @param ResponseInterface $response |
||
153 | * |
||
154 | * @return ResponseInterface |
||
155 | */ |
||
156 | public function completeAuthorizationRequest(AuthorizationRequest $authRequest, ResponseInterface $response) |
||
162 | |||
163 | /** |
||
164 | * Return an access token response. |
||
165 | * |
||
166 | * @param ServerRequestInterface $request |
||
167 | * @param ResponseInterface $response |
||
168 | * |
||
169 | * @throws OAuthServerException |
||
170 | * |
||
171 | * @return ResponseInterface |
||
172 | */ |
||
173 | public function respondToAccessTokenRequest(ServerRequestInterface $request, ResponseInterface $response) |
||
191 | |||
192 | /** |
||
193 | * Get the token type that grants will return in the HTTP response. |
||
194 | * |
||
195 | * @return ResponseTypeInterface |
||
196 | */ |
||
197 | protected function getResponseType() |
||
208 | } |
||
209 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.