1 | <?php |
||
11 | class Yahoo extends AbstractProvider |
||
12 | { |
||
13 | use BearerAuthorizationTrait; |
||
14 | |||
15 | const ACCESS_TOKEN_RESOURCE_OWNER_ID = 'xoauth_yahoo_guid'; |
||
16 | |||
17 | |||
18 | /* |
||
19 | https://developer.yahoo.com/oauth2/guide/flows_authcode/#step-2-get-an-authorization-url-and-authorize-access |
||
20 | */ |
||
21 | protected $language = "en-us"; |
||
22 | |||
23 | private $imageSize='192x192'; |
||
24 | |||
25 | |||
26 | public function getBaseAuthorizationUrl() |
||
30 | |||
31 | public function getBaseAccessTokenUrl(array $params) |
||
35 | |||
36 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
||
43 | |||
44 | /** |
||
45 | * Get user image from provider |
||
46 | * |
||
47 | * @param array $response |
||
48 | * @param AccessToken $token |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | protected function getUserImage(array $response, AccessToken $token) |
||
64 | |||
65 | protected function getAuthorizationParameters(array $options) |
||
73 | |||
74 | protected function getDefaultScopes() |
||
81 | |||
82 | protected function getScopeSeparator() |
||
86 | |||
87 | protected function checkResponse(ResponseInterface $response, $data) |
||
104 | |||
105 | protected function createResourceOwner(array $response, AccessToken $token) |
||
114 | |||
115 | /** |
||
116 | * Get user image url from provider, if available |
||
117 | * |
||
118 | * @param array $response |
||
119 | * @param AccessToken $token |
||
120 | * |
||
121 | * @return string |
||
122 | */ |
||
123 | protected function getUserImageUrl(array $response, AccessToken $token) |
||
132 | } |
||
133 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.