31 lines
616 B
Plaintext
Raw Normal View History

2020-04-03 14:36:32 +03:00
<?php
namespace $MODULE_NAMESPACE$\$STUDLY_NAME$\Providers;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as Provider;
class Event extends Provider
{
/**
2020-07-01 09:35:10 +03:00
* Determine if events and listeners should be automatically discovered.
2020-04-03 14:36:32 +03:00
*
2020-07-01 09:35:10 +03:00
* @return bool
2020-04-03 14:36:32 +03:00
*/
2020-07-01 09:35:10 +03:00
public function shouldDiscoverEvents()
{
return true;
}
/**
* Get the listener directories that should be used to discover events.
*
* @return array
*/
protected function discoverEventsWithin()
{
return [
__DIR__ . '/../Listeners',
];
}
2020-04-03 14:36:32 +03:00
}