EventServiceProvider.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace App\Providers;
  3. use App\Listeners\UsersEventListener;
  4. use Illuminate\Auth\Events\Registered;
  5. use SocialiteProviders\Apple\AppleExtendSocialite;
  6. use SocialiteProviders\Kakao\KakaoExtendSocialite;
  7. use SocialiteProviders\Manager\SocialiteWasCalled;
  8. use SocialiteProviders\Google\GoogleExtendSocialite;
  9. use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
  10. use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
  11. use SocialiteProviders\Naver\NaverExtendSocialite;
  12. class EventServiceProvider extends ServiceProvider
  13. {
  14. /**
  15. * The event listener mappings for the application.
  16. *
  17. * @var array
  18. */
  19. protected $listen = [
  20. Registered::class => [
  21. SendEmailVerificationNotification::class,
  22. ],
  23. \App\Events\UserCreated::class => [
  24. \App\Listeners\UsersEventListener::class
  25. ],
  26. \App\Events\DormantAccountNotify::class => [
  27. \App\Listeners\DormantAccountsEventListener::class
  28. ],
  29. SocialiteWasCalled::class => [
  30. KakaoExtendSocialite::class,
  31. GoogleExtendSocialite::class,
  32. NaverExtendSocialite::class,
  33. AppleExtendSocialite::class
  34. ]
  35. ];
  36. protected $subscribe = [
  37. UsersEventListener::class
  38. ];
  39. /**
  40. * Register any events for your application.
  41. *
  42. * @return void
  43. */
  44. public function boot()
  45. {
  46. //
  47. }
  48. }