DoctrineSubscriberRegistrationSubscriber

Extends \Shopware\Plugins\ViisonCommon\Classes\Subscribers\Base

Subscriber that registers a custom doctrine event Subscriber which is required to implement order overwrite protection while https://github.com/shopware5/shopware/pull/1474 is not merged yet.

package

Default

Methods

getSubscribedEvents

getSubscribedEvents() : array
static

Response

array

Since Shopware does not expose Doctrine's onFlush event, and that's the only event where we can safely implement change time tracking as part of the Order Attribute, we need to register a custom Doctrine EventSubscriber.

registerDoctrineSubscriber()