EventServiceProvider.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. namespace App\Providers;
  3. use App\Events\AgentAuditServiceEvent;
  4. use App\Events\OrderPayInfoEvent;
  5. use App\Events\ReturnGoodLog;
  6. use App\Events\SendGoodLogEvent;
  7. use App\Events\WechatMessageEvent;
  8. use App\Listeners\AgentAuditServiceListener;
  9. use App\Listeners\OrderPayInfoListener;
  10. use App\Listeners\ReturnGoodListener;
  11. use App\Listeners\SendGoodLogListener;
  12. use App\Listeners\WechatMessageListener;
  13. use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;
  14. class EventServiceProvider extends ServiceProvider
  15. {
  16. /**
  17. * The event listener mappings for the application.
  18. *
  19. * @var array
  20. */
  21. protected $listen = [
  22. 'App\Events\ExampleEvent' => [
  23. 'App\Listeners\ExampleListener',
  24. ],
  25. 'App\Events\RegisterApplyEvent' => [
  26. 'App\Listeners\RegisterApplyListener',
  27. ],
  28. 'App\Events\DestoryOrder' => [ // 撤销订单
  29. 'App\Listeners\DestoryOrderListener',
  30. ],
  31. 'App\Events\AgentAuditEvent' => [
  32. 'App\Listeners\AgentAuditListener',
  33. ],
  34. 'App\Events\UserMessageEvent' => [
  35. 'App\Listeners\UserMessageListener',
  36. ],
  37. 'App\Events\SubmitOrdersInfoEvent' => [
  38. 'App\Listeners\SubmitOrdersInfoListener',
  39. ],
  40. 'App\Events\OrderPayEvent' => [
  41. 'App\Listeners\OrderPayListener',
  42. ],
  43. OrderPayInfoEvent::class => [
  44. OrderPayInfoListener::class
  45. ],
  46. 'App\Events\ClientInfoEvent' => [
  47. 'App\Listeners\ClientInfoListener',
  48. ],
  49. AgentAuditServiceEvent::class=>[
  50. AgentAuditServiceListener::class
  51. ],
  52. // WechatMessageEvent::class=>[
  53. // WechatMessageListener::class,
  54. // ],
  55. 'App\Events\AuthRefundTip' => [
  56. 'App\Listeners\AuthRefundTipListeners',
  57. ],
  58. 'App\Events\RetailOutboundEvent' => [
  59. 'App\Listeners\RetailOutboundListener',
  60. ],
  61. 'App\Events\RestoreOutboundEvent' => [
  62. 'App\Listeners\RestoreOutboundListener',
  63. ],
  64. 'App\Events\ReceivingEvent' => [
  65. 'App\Listeners\ReceivingListener',
  66. ],
  67. 'App\Events\TipSendingEvent' => [
  68. 'App\Listeners\TipSendingListener',
  69. ],
  70. 'App\Events\CancelOrderEvent' => [
  71. 'App\Listeners\CancelOrderListener',
  72. ],
  73. 'App\Events\NewOrder' => [
  74. 'App\Listeners\NewOrderListeners',
  75. ],
  76. 'App\Events\HelpOrderEvent' => [
  77. 'App\Listeners\HelpOrderListener',
  78. ],
  79. 'App\Events\FinishAccount' => [
  80. 'App\Listeners\FinishAccountListeners',
  81. ],
  82. SendGoodLogEvent::class=>[
  83. SendGoodLogListener::class
  84. ],
  85. ReturnGoodLog::class=>[
  86. ReturnGoodListener::class
  87. ],
  88. 'App\Events\EnoughFive' => [
  89. 'App\Listeners\EnoughFiveListeners',
  90. ],
  91. ];
  92. }