Register Listeners and Subscribers
The Athenaeum Events package offers way to register Event Listeners and Subscribers via configuration.
It serves as an alternative registration method than that provided by Laravel.
<?php
return [
'listeners' => [
\Acme\Users\Events\UserCreated::class => [
\Acme\Users\Listeners\LogNewUser::class,
\Acme\Users\Listeners\SendWelcomeEmail::class,
],
'payments.*' => [
\Acma\Payments\Listeners\VerifyPaymentSession::class
],
// ... etc
],
'subscribers' => [
\Acme\Orders\Subscribers\OrderEventsSubscriber::class,
\Acme\Users\Subscribers\TrialPeriodSubscriber::class,
// ... etc
]
];