31 lines
606 B
PHP
Raw Normal View History

2020-05-14 21:04:39 +03:00
<?php
namespace Modules\PaypalStandard\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-05-14 21:04:39 +03:00
*
2020-07-01 09:35:10 +03:00
* @return bool
2020-05-14 21:04:39 +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-05-14 21:04:39 +03:00
}