30 lines
593 B
PHP
30 lines
593 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Providers;
|
||
|
|
||
|
use Laravel\Lumen\Providers\EventServiceProvider as ServiceProvider;
|
||
|
|
||
|
class EventServiceProvider extends ServiceProvider
|
||
|
{
|
||
|
/**
|
||
|
* The event listener mappings for the application.
|
||
|
*
|
||
|
* @var array
|
||
|
*/
|
||
|
protected $listen = [
|
||
|
\App\Events\ExampleEvent::class => [
|
||
|
\App\Listeners\ExampleListener::class,
|
||
|
],
|
||
|
];
|
||
|
|
||
|
/**
|
||
|
* Determine if events and listeners should be automatically discovered.
|
||
|
*
|
||
|
* @return bool
|
||
|
*/
|
||
|
public function shouldDiscoverEvents()
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
}
|