Events
The Shopware\App\SDK\AppLifecycle
and Shopware\App\SDK\Registration\RegistrationService
class accepts a PSR event dispatcher. When a PSR Dispatcher is passed, the following events will be fired:
- BeforeShopActivateEvent
- ShopActivatedEvent
- BeforeShopDeactivatedEvent
- ShopDeactivatedEvent
- BeforeShopDeletionEvent
- ShopDeletedEvent
- BeforeRegistrationCompletedEvent
- RegistrationCompletedEvent
With that event, you can react to several actions during the app lifecycle or a registration process to run your code.