aboutsummaryrefslogtreecommitdiffstats
path: root/includes/DomainEvent/DomainEventSubscriber.php
blob: 6009bcee9b04a1e7b35c42044529bf9113ff4c1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

namespace MediaWiki\DomainEvent;

/**
 * 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.
 */
interface DomainEventSubscriber {

	/**
	 * Registers listeners with the given $eventSource.
	 */
	public function registerListeners( DomainEventSource $eventSource ): void;

}