Breaking: #452 - Replace Hooks 

See Issue 452

Description 

Existing Hooks have been removed. They were replaced by EventListeners. The extension offered following hooks:

  • showCartActionAfterCartWasLoaded in ExtcodeCartControllerCartCartController
  • AddToCartFinisher in ExtcodeCartDomainFinisherFormAddToCartFinisher
  • MailAttachmentHook in ExtcodeCartServiceMailHandler

Affected Installations 

All installations that used the hooks to programmatically adjust the behavior of the extension are affected.

Migration 

  • showCartActionAfterCartWasLoaded in ExtcodeCartControllerCartCartController now needs to listen to the event ExtcodeCartEventCartBeforeShowCartEvent
  • AddToCartFinisher in ExtcodeCartDomainFinisherFormAddToCartFinisher now needs to listen to the event ExtcodeCartEventFormAddToCartFinisherEvent
  • MailAttachmentHook in ExtcodeCartServiceMailHandler now needs to listen to the event ExtcodeCartEventMailAttachmentEvent