No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

32 líneas
719 B

  1. <?php
  2. /*
  3. * This file is part of the overtrue/socialite.
  4. *
  5. * (c) overtrue <i@overtrue.me>
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Overtrue\Socialite;
  11. interface ProviderInterface
  12. {
  13. /**
  14. * Redirect the user to the authentication page for the provider.
  15. *
  16. * @return \Symfony\Component\HttpFoundation\RedirectResponse
  17. */
  18. public function redirect();
  19. /**
  20. * Get the User instance for the authenticated user.
  21. *
  22. * @param \Overtrue\Socialite\AccessTokenInterface $token
  23. *
  24. * @return \Overtrue\Socialite\User
  25. */
  26. public function user(AccessTokenInterface $token = null);
  27. }