FactoryInterface.php 508 B

123456789101112131415161718192021222324252627
  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. /**
  12. * Interface FactoryInterface.
  13. */
  14. interface FactoryInterface
  15. {
  16. /**
  17. * Get an OAuth provider implementation.
  18. *
  19. * @param string $driver
  20. *
  21. * @return \Overtrue\Socialite\ProviderInterface
  22. */
  23. public function driver($driver);
  24. }