Page MenuHomeWickedGov Phorge

DomainEventDispatcher.php
No OneTemporary

Size
993 B
Referenced Files
None
Subscribers
None

DomainEventDispatcher.php

<?php
namespace MediaWiki\DomainEvent;
use Wikimedia\Rdbms\IConnectionProvider;
/**
* Service for sending domain events to registered listeners.
*
* @since 1.44
*
* @see docs/Events.md
* @see https://www.mediawiki.org/wiki/Manual:Domain_events
*/
interface DomainEventDispatcher {
/**
* Dispatch the given event to any listeners that have been registered for
* the given event type. The event will be dispatched to registered listeners
* later, after (and if) the current transaction in $dbw has been committed
* successfully. No listeners will be invoked within the current transaction.
*
* Implementations should aim to provide at-least-once delivery semantics,
* but guaranteed delivery is not a hard requirement of this interface.
* An application may guarantee delivery of domain events by providing
* an appropriate implementation (a transactional outbox).
*/
public function dispatch(
DomainEvent $event,
IConnectionProvider $dbProvider
): void;
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Nov 22, 02:53 (1 d, 5 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cb/4c/26e2da06a29883857536266e944d
Default Alt Text
DomainEventDispatcher.php (993 B)

Event Timeline