MediaWiki master
MediaWiki\Languages\LanguageEventIngress Class Reference

The ingres adapter for the language component. More...

Inherits MediaWiki\DomainEvent\EventSubscriberBase.

Collaboration diagram for MediaWiki\Languages\LanguageEventIngress:

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)
 

Detailed Description

The ingres adapter for the language component.

It updates language related state according to domain events coming from other components.

Access: internal

Definition at line 16 of file LanguageEventIngress.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Languages\LanguageEventIngress::__construct ( MessageCache $messageCache)
Parameters
MessageCache$messageCache

Definition at line 34 of file LanguageEventIngress.php.

Member Function Documentation

◆ handlePageUpdatedEventAfterCommit()

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.

Member Data Documentation

◆ OBJECT_SPEC

const MediaWiki\Languages\LanguageEventIngress::OBJECT_SPEC
Initial value:
= [
'class' => self::class,
'services' => [
'MessageCache'
],
'events' => [
],
]

Object spec intented for use with DomainEventSource::registerSubscriber().

Definition at line 21 of file LanguageEventIngress.php.


The documentation for this class was generated from the following file: