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
]
];
Please read the official documentation for additional information.
The mono repository is located at github.com/aedart/athenaeum
This package follows Semantic Versioning 2.0.0
BSD-3-Clause, Read the LICENSE file included in this package