Last active
October 2, 2015 19:34
-
-
Save gamerwalt/f3518a0d616b73a9e593 to your computer and use it in GitHub Desktop.
Event Service provider sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected $listen = [ | |
'BentaNamin\Infrastructure\Events\RegistrationEvents\UserRegisteredEvent' => [ | |
'BentaNamin\Infrastructure\EventListeners\RegistrationEventListeners\SendWelcomeEmail', | |
'BentaNamin\Infrastructure\EventListeners\RegistrationEventListeners\InformAdministrationOfNewRegistrant', | |
'BentaNamin\Infrastructure\EventListeners\RegistrationEventListeners\QueueEmailForNextSevenDaysIfNoActivity', | |
], | |
'BentaNamin\Infrastructure\Events\RegistrationEvents\TenantRegisteredEvent' => [ | |
'BentaNamin\Infrastructure\EventListeners\RegistrationEventListeners\CreateTenantDatabaseRecords', | |
'BentaNamin\Infrastructure\EventListeners\RegistrationEventListeners\ProvisionTenantDatabases', | |
'BentaNamin\Infrastructure\EventListeners\RegistrationEventListeners\SendUserInfoToTenantDatabases', | |
'BentaNamin\Infrastructure\EventListeners\RegistrationEventListeners\SendVerificationEmailWithDatabaseProvisioned', | |
], | |
'BentaNamin\Infrastructure\Events\RegistrationEvents\UserVerifiedEmailEvent' => [ | |
'BentaNamin\Infrastructure\EventListeners\RegistrationEventListeners\SendThankYouEmail' | |
] | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment