EventServiceProvider.php 1022 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Providers;
  4. use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
  5. use Illuminate\Support\Facades\Event;
  6. class EventServiceProvider extends ServiceProvider
  7. {
  8. /**
  9. * The event to listener mappings for the application.
  10. *
  11. * @var array<class-string, array<int, class-string>>
  12. */
  13. protected $listen = [
  14. \SocialiteProviders\Manager\SocialiteWasCalled::class => [
  15. \SocialiteProviders\Weibo\WeiboExtendSocialite::class,
  16. \SocialiteProviders\QQ\QqExtendSocialite::class,
  17. \SocialiteProviders\VKontakte\VKontakteExtendSocialite::class,
  18. ],
  19. ];
  20. /**
  21. * Register any events for your application.
  22. *
  23. * @return void
  24. */
  25. public function boot()
  26. {
  27. }
  28. /**
  29. * Determine if events and listeners should be automatically discovered.
  30. *
  31. * @return bool
  32. */
  33. public function shouldDiscoverEvents()
  34. {
  35. return false;
  36. }
  37. }