31 lines
607 B
PHP
Raw Normal View History

<?php
namespace Modules\OfflinePayments\Providers;
2020-04-03 14:36:32 +03:00
use Illuminate\Foundation\Support\Providers\EventServiceProvider as Provider;
2020-04-03 14:36:32 +03:00
class Event extends Provider
{
/**
2020-07-01 09:35:10 +03:00
* Determine if events and listeners should be automatically discovered.
*
2020-07-01 09:35:10 +03:00
* @return bool
*/
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',
];
}
}