EventServiceProvider.php 662 B

1234567891011121314151617181920212223242526272829
  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 App\Listeners\RequestHandledListener;
  12. use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;
  13. class EventServiceProvider extends ServiceProvider
  14. {
  15. /**
  16. * The event listener mappings for the application.
  17. *
  18. * @var array
  19. */
  20. protected $listen = [
  21. \App\Events\ExampleEvent::class => [
  22. \App\Listeners\ExampleListener::class,
  23. ],
  24. ];
  25. }