MediaWiki
master
DomainEventSource.php
Go to the documentation of this file.
1
<?php
2
namespace
MediaWiki\DomainEvent
;
3
12
interface
DomainEventSource
{
13
19
public
const
DEFAULT_LISTENER_OPTIONS
= [];
20
45
public
function
registerListener
(
46
string
$eventType,
47
$listener,
48
array $options = self::DEFAULT_LISTENER_OPTIONS
49
): void;
50
66
public
function
registerSubscriber
( $subscriber ): void;
67
68
}
MediaWiki\DomainEvent\DomainEventSource
Service object for registering listeners for domain events.
Definition
DomainEventSource.php:12
MediaWiki\DomainEvent\DomainEventSource\registerSubscriber
registerSubscriber( $subscriber)
Register the given subscriber to this event source.
MediaWiki\DomainEvent\DomainEventSource\DEFAULT_LISTENER_OPTIONS
const DEFAULT_LISTENER_OPTIONS
Default options to apply when registering listeners.
Definition
DomainEventSource.php:19
MediaWiki\DomainEvent\DomainEventSource\registerListener
registerListener(string $eventType, $listener, array $options=self::DEFAULT_LISTENER_OPTIONS)
Add a listener that will be notified on events of the given type, triggered by a change to an entity ...
MediaWiki\DomainEvent
Definition
DomainEvent.php:3
includes
DomainEvent
DomainEventSource.php
Generated on Fri Jun 20 2025 04:24:03 for MediaWiki by
1.10.0