Skip to content

Instantly share code, notes, and snippets.

@gamerwalt
Last active October 2, 2015 19:34
Show Gist options
  • Save gamerwalt/f3518a0d616b73a9e593 to your computer and use it in GitHub Desktop.
Save gamerwalt/f3518a0d616b73a9e593 to your computer and use it in GitHub Desktop.
Event Service provider sample
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