MediaWiki master
|
An DomainEventSubscriber that requires initialization with an options array after construction. More...
Inherits MediaWiki\DomainEvent\DomainEventSubscriber.
Inherited by MediaWiki\DomainEvent\DomainEventIngress.
Public Member Functions | |
initSubscriber (array $options) | |
Initializer used to inform the behavior of the registerListeners() method. | |
![]() | |
registerListeners (DomainEventSource $eventSource) | |
Registers listeners with the given $eventSource. | |
An DomainEventSubscriber that requires initialization with an options array after construction.
This is useful when constructing an DomainEventSubscriber from an object spec.
Definition at line 13 of file InitializableDomainEventSubscriber.php.
MediaWiki\DomainEvent\InitializableDomainEventSubscriber::initSubscriber | ( | array | $options | ) |
Initializer used to inform the behavior of the registerListeners() method.
registerListeners() may throw if called before initSubscriber().
The $options array must specify at least the 'event's key, listing any events that this subscriber should register events for.
Implemented in MediaWiki\DomainEvent\DomainEventIngress.