EventServiceProvider.php 620 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /*
  3. * This file is part of the Jiannei/lumen-api-starter.
  4. *
  5. * (c) Jiannei <longjian.huang@foxmail.com>
  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 App\Providers;
  11. use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;
  12. class EventServiceProvider extends ServiceProvider
  13. {
  14. /**
  15. * The event listener mappings for the application.
  16. *
  17. * @var array
  18. */
  19. protected $listen = [
  20. \App\Events\ExampleEvent::class => [
  21. \App\Listeners\ExampleListener::class,
  22. ],
  23. ];
  24. }