Akaunting/modules/PaypalStandard/Providers/Event.php

31 lines
606 B
PHP
Raw Normal View History

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