MediaWiki master
|
The ingres adapter for the language component. More...
Inherits MediaWiki\DomainEvent\EventSubscriberBase.
Public Member Functions | |
__construct (MessageCache $messageCache) | |
handlePageUpdatedEventAfterCommit (PageUpdatedEvent $event) | |
Listener method for PageUpdatedEvent, to be registered with a DomainEventSource. | |
Public Member Functions inherited from MediaWiki\DomainEvent\EventSubscriberBase | |
initSubscriber (array $options) | |
Called by DomainEventDispatcher to provide access to the list of events to subscribe to and any other relevant information from the extension.json. | |
registerListeners (DomainEventSource $eventSource) | |
This default implementation of registerListeners() will automatically register a listener method for each event passed to initEvents() or initSubscriber(). | |
Public Attributes | |
const | OBJECT_SPEC |
Object spec intented for use with DomainEventSource::registerSubscriber() . | |
Additional Inherited Members | |
Protected Member Functions inherited from MediaWiki\DomainEvent\EventSubscriberBase | |
initEvents (array $events) | |
May be called from the constructor of subclasses that want to directly specify the list of events. | |
registerListenerMethod (DomainEventSource $eventSource, string $eventType, ?string $method=null) | |
The ingres adapter for the language component.
It updates language related state according to domain events coming from other components.
Definition at line 16 of file LanguageEventIngress.php.
MediaWiki\Languages\LanguageEventIngress::__construct | ( | MessageCache | $messageCache | ) |
MessageCache | $messageCache |
Definition at line 34 of file LanguageEventIngress.php.
MediaWiki\Languages\LanguageEventIngress::handlePageUpdatedEventAfterCommit | ( | PageUpdatedEvent | $event | ) |
Listener method for PageUpdatedEvent, to be registered with a DomainEventSource.
@noinspection PhpUnused
Definition at line 43 of file LanguageEventIngress.php.
References MediaWiki\Storage\PageUpdatedEvent\getNewRevision(), MediaWiki\Storage\PageUpdatedEvent\getPage(), MediaWiki\Storage\PageUpdatedEvent\isModifiedSlot(), and NS_MEDIAWIKI.
const MediaWiki\Languages\LanguageEventIngress::OBJECT_SPEC |
Object spec intented for use with DomainEventSource::registerSubscriber()
.
Definition at line 21 of file LanguageEventIngress.php.