57 array $options = self::DEFAULT_LISTENER_OPTIONS
Service object for registering listeners for domain events.
registerSubscriber( $subscriber)
Register the given subscriber to this event source.
const DEFAULT_LISTENER_OPTIONS
Default options to apply when registering listeners.
registerListener(string $eventType, $listener, array $options=self::DEFAULT_LISTENER_OPTIONS)
Add a listener that will be notified on events of the given type, triggered by changed to the persist...
const INVOKE_AFTER_COMMIT
Listeners will be invoked after the transaction that produced the event was committed successfully.