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

namespace MediaWiki\DomainEvent;

/**
 * Objects implementing DomainEventSubscriber represent a collection of
 * related event listeners.
 *
 * @since 1.44
 * @stable to type
 * @note Extensions should not implement this interface directly but should
 *       extend EventIngressBase.
 */
interface DomainEventSubscriber {

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

}