MediaWiki master
MediaWiki\Languages\LanguageEventIngress Class Reference

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

Inherits MediaWiki\DomainEvent\EventSubscriberBase.

Collaboration diagram for MediaWiki\Languages\LanguageEventIngress:

Public Member Functions

 __construct (MessageCache $messageCache)
 
 handlePageDeletedEventAfterCommit (PageDeletedEvent $event)
 Listener method for PageRevisionUpdatedEvent, to be registered with a DomainEventSource.
 
 handlePageRevisionUpdatedEvent (PageRevisionUpdatedEvent $event)
 Listener method for PageRevisionUpdatedEvent, 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 intended for use with DomainEventSource::registerSubscriber().
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWiki\DomainEvent\EventSubscriberBase
 getListenerOptions (string $eventType, string $suffix)
 Placeholder method for allowing subclasses to define listener options.
 
 initEvents (array $events)
 May be called from the constructor of subclasses that want to directly specify the list of events.
 
 registerForEvent (DomainEventSource $eventSource, string $eventType)
 Registered any listener methods for the given event.
 

Detailed Description

The ingress adapter for the language component.

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

Access: internal

Definition at line 17 of file LanguageEventIngress.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 33 of file LanguageEventIngress.php.

Member Function Documentation

◆ handlePageDeletedEventAfterCommit()

MediaWiki\Languages\LanguageEventIngress::handlePageDeletedEventAfterCommit ( PageDeletedEvent $event)

Listener method for PageRevisionUpdatedEvent, to be registered with a DomainEventSource.

@noinspection PhpUnused

Definition at line 59 of file LanguageEventIngress.php.

References MediaWiki\Page\Event\PageStateEvent\getPage(), and NS_MEDIAWIKI.

◆ handlePageRevisionUpdatedEvent()

MediaWiki\Languages\LanguageEventIngress::handlePageRevisionUpdatedEvent ( PageRevisionUpdatedEvent $event)

Member Data Documentation

◆ OBJECT_SPEC

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

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

Definition at line 22 of file LanguageEventIngress.php.


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