MediaWiki master
MediaWiki\DomainEvent\DomainEventSubscriber Interface Reference

Objects implementing DomainEventSubscriber represent a collection of related event listeners. More...

Inherited by MediaWiki\DomainEvent\InitializableDomainEventSubscriber, and MediaWiki\Registration\ExtensionRegistry.

Public Member Functions

 registerListeners (DomainEventSource $eventSource)
 Registers listeners with the given $eventSource.
 

Detailed Description

Objects implementing DomainEventSubscriber represent a collection of related event listeners.

Since
1.44
Note
Extensions should not implement this interface directly but should extend DomainEventIngress.
See also
docs/Events.md
https://www.mediawiki.org/wiki/Manual:Domain_events

Definition at line 16 of file DomainEventSubscriber.php.

Member Function Documentation

◆ registerListeners()

MediaWiki\DomainEvent\DomainEventSubscriber::registerListeners ( DomainEventSource $eventSource)

Registers listeners with the given $eventSource.

Implemented in MediaWiki\DomainEvent\DomainEventIngress, and MediaWiki\Registration\ExtensionRegistry.


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