| 1 | <?php |
||
| 10 | abstract class SocialProvider implements \Acacha\LaravelSocial\Contracts\SocialProvider |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Laravel Socialite. |
||
| 14 | * |
||
| 15 | * @var |
||
| 16 | */ |
||
| 17 | public $socialite; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * SocialProvider constructor. |
||
| 21 | * |
||
| 22 | * @param $socialite |
||
| 23 | */ |
||
| 24 | public function __construct(\Laravel\Socialite\Contracts\Factory $socialite) |
||
| 28 | |||
| 29 | |||
| 30 | /** |
||
| 31 | * Redirect the user to the authentication page for the provider. |
||
| 32 | * |
||
| 33 | * @return \Symfony\Component\HttpFoundation\RedirectResponse |
||
| 34 | */ |
||
| 35 | public function redirect() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Redirect the user to the authentication page for the provider. |
||
| 42 | * |
||
| 43 | * @return \Laravel\Socialite\Contracts\User |
||
| 44 | */ |
||
| 45 | public function user() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * The name of social provider. |
||
| 52 | * |
||
| 53 | * @return mixed |
||
| 54 | */ |
||
| 55 | abstract public function name(); |
||
| 56 | } |
||
| 57 |