| 1 | <?php |
||
| 17 | abstract class Grant |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @param Client $http |
||
| 21 | * @param AuthFactory $factory |
||
| 22 | * @param Scope $scope |
||
| 23 | */ |
||
| 24 | abstract public function auth(GuzzleHttpClient $http, AuthFactory $factory, Scope $scope); |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | 1 | protected static function getPathToOAuthToken(MastodonClient $client) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return array |
||
| 36 | */ |
||
| 37 | 2 | protected static function getFormParams(AuthFactory $factory) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | 1 | protected static function getFormParamsWithSecret(AuthFactory $factory) |
|
| 53 | } |
||
| 54 |