MediaWiki master
MediaWiki\DomainEvent\InitializableDomainEventSubscriber Interface Reference

An DomainEventSubscriber that requires initialization with an options array after construction. More...

Inherits MediaWiki\DomainEvent\DomainEventSubscriber.

Inherited by MediaWiki\DomainEvent\DomainEventIngress.

Collaboration diagram for MediaWiki\DomainEvent\InitializableDomainEventSubscriber:

Public Member Functions

 initSubscriber (array $options)
 Initializer used to inform the behavior of the registerListeners() method.
 
- Public Member Functions inherited from MediaWiki\DomainEvent\DomainEventSubscriber
 registerListeners (DomainEventSource $eventSource)
 Registers listeners with the given $eventSource.
 

Detailed Description

An DomainEventSubscriber that requires initialization with an options array after construction.

This is useful when constructing an DomainEventSubscriber from an object spec.

Access: internal
for use by DomainEventSubscriber

Definition at line 13 of file InitializableDomainEventSubscriber.php.

Member Function Documentation

◆ initSubscriber()

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.


The documentation for this interface was generated from the following file: