MediaWiki
master
DomainEventDispatcher.php
Go to the documentation of this file.
1
<?php
2
namespace
MediaWiki\DomainEvent
;
3
4
use
Wikimedia\Rdbms\IConnectionProvider
;
5
12
interface
DomainEventDispatcher
{
13
25
public
function
dispatch
(
26
DomainEvent
$event,
27
IConnectionProvider
$dbProvider
28
): void;
29
30
}
MediaWiki\DomainEvent\DomainEvent
Base class for domain event objects to be used with DomainEventDispatcher.
Definition
DomainEvent.php:28
MediaWiki\DomainEvent\DomainEventDispatcher
Service for sending domain events to registered listeners.
Definition
DomainEventDispatcher.php:12
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 Tue Jan 7 2025 20:22:53 for MediaWiki by
1.10.0