PHP code example of aedart / athenaeum-events
1. Go to this page and download the library: Download aedart/athenaeum-events library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aedart / athenaeum-events example snippets
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
]
];