MediaWiki master
DomainEventSource.php
Go to the documentation of this file.
1<?php
3
13
19 public const DEFAULT_LISTENER_OPTIONS = [];
20
45 public function registerListener(
46 string $eventType,
47 $listener,
48 array $options = self::DEFAULT_LISTENER_OPTIONS
49 ): void;
50
66 public function registerSubscriber( $subscriber ): void;
67
68}
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 a change to an entity ...