MediaWiki
master
DomainEventDispatcher.php
Go to the documentation of this file.
1
<?php
2
namespace
MediaWiki\DomainEvent
;
3
4
use
Wikimedia\Rdbms\IConnectionProvider
;
5
14
interface
DomainEventDispatcher
{
15
27
public
function
dispatch
(
28
DomainEvent
$event,
29
IConnectionProvider
$dbProvider
30
): void;
31
32
}
MediaWiki\DomainEvent\DomainEvent
Base class for domain event objects to be used with DomainEventDispatcher.
Definition
DomainEvent.php:33
MediaWiki\DomainEvent\DomainEventDispatcher
Service for sending domain events to registered listeners.
Definition
DomainEventDispatcher.php:14
MediaWiki\DomainEvent\DomainEventDispatcher\dispatch
dispatch(DomainEvent $event, IConnectionProvider $dbProvider)
Dispatch the given event to any listeners that have been registered for the given event type.
Wikimedia\Rdbms\IConnectionProvider
Provide primary and replica IDatabase connections.
Definition
IConnectionProvider.php:35
MediaWiki\DomainEvent
Definition
DomainEvent.php:3
includes
DomainEvent
DomainEventDispatcher.php
Generated on Fri May 16 2025 06:24:13 for MediaWiki by
1.10.0