EventServiceProvider.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. namespace App\Providers;
  3. use App\Events\GoodnightSuccess;
  4. use App\Listeners\CompleteInfoListen;
  5. use App\Listeners\FriendMapChange;
  6. use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
  7. /**
  8. * Class EventServiceProvider
  9. * @package App\Providers
  10. */
  11. class EventServiceProvider extends ServiceProvider
  12. {
  13. /**
  14. * The event listener mappings for the application.
  15. *
  16. * @var array
  17. */
  18. protected $listen = [
  19. 'App\Events\CreatedPartner' => [
  20. 'App\Listeners\MockThumb',
  21. "App\Listeners\ReportPartnerChange@createdPartner",
  22. 'App\Listeners\UserAction@createdPartner',
  23. ],
  24. 'App\Events\UpdatedPartner' => [
  25. 'App\Listeners\ReportPartnerChange@updatedPartner',
  26. 'App\Listeners\UserAction@updatedPartnerState'
  27. ],
  28. 'App\Events\HidePartner' => [
  29. 'App\Listeners\ReportPartnerChange@hidePartner'
  30. ],
  31. 'App\Events\AuditMedia' => [
  32. 'App\Listeners\AuditMedia'
  33. ],
  34. 'App\Events\AuditMediaDeal' => [
  35. 'App\Listeners\AuditMediaDeal'
  36. ],
  37. 'App\Events\PartnerFeedPoolChange' => [
  38. 'App\Listeners\PartnerFeedPoolChange'
  39. ],
  40. 'App\Events\UpdatedUserInfo' => [
  41. 'App\Listeners\UserAction@updatedUserInfo'
  42. ],
  43. 'App\Events\LogoutUser' => [
  44. 'App\Listeners\UserAction@logoutUser'
  45. ],
  46. 'App\Events\BlackUser' => [
  47. 'App\Listeners\UserAction@blackUser'
  48. ],
  49. 'App\Events\CheckPartner' => [
  50. 'App\Listeners\UserAction@checkPartner'
  51. ],
  52. 'App\Events\EachLike' => [
  53. 'App\Listeners\EachLikeNotice',
  54. 'App\Listeners\EachLikeReport',
  55. 'App\Listeners\FriendMapChange@eachLike',
  56. ],
  57. 'App\Events\UnEachLike' => [
  58. 'App\Listeners\FriendMapChange@unEachLike'
  59. ],
  60. 'App\Events\PairSuccess' => [
  61. 'App\Listeners\FriendMapChange@pairSuccess'
  62. ],
  63. 'App\Events\GoodnightSuccess' => [
  64. 'App\Listeners\FriendMapChange@goodnight'
  65. ],
  66. 'App\Events\ImSendMsg' => [
  67. 'App\Listeners\UpdateContactListCache'
  68. ],
  69. 'App\Events\ThumbUser' => [
  70. 'App\Listeners\ThumbOrUnThumbUser@thumb'
  71. ],
  72. 'App\Events\UnThumbUser' => [
  73. 'App\Listeners\ThumbOrUnThumbUser@unThumb'
  74. ]
  75. ];
  76. protected $subscribe = [
  77. CompleteInfoListen::class,
  78. ];
  79. /**
  80. * Register any events for your application.
  81. *
  82. * @return void
  83. */
  84. public function boot()
  85. {
  86. parent::boot();
  87. //
  88. }
  89. }