MediaWiki master
MediaWiki\RecentChanges\ChangeTrackingEventIngress Class Reference

The ingress subscriber for the change tracking component. More...

Inherits MediaWiki\DomainEvent\DomainEventIngress, and MediaWiki\Page\Event\PageLatestRevisionChangedListener.

Collaboration diagram for MediaWiki\RecentChanges\ChangeTrackingEventIngress:

Public Member Functions

 __construct (ChangeTagsStore $changeTagsStore, UserEditTracker $userEditTracker, PermissionManager $permissionManager, WikiPageFactory $wikiPageFactory, HookContainer $hookContainer, UserNameUtils $userNameUtils, TalkPageNotificationManager $talkPageNotificationManager, Config $mainConfig, JobQueueGroup $jobQueueGroup, IContentHandlerFactory $contentHandlerFactory, RecentChangeFactory $recentChangeFactory)
 
 handlePageLatestRevisionChangedEvent (PageLatestRevisionChangedEvent $event)
 Listener method for PageLatestRevisionChangedEvent, to be registered with an DomainEventSource.
 
- Public Member Functions inherited from MediaWiki\DomainEvent\DomainEventIngress
 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().
 

Static Public Member Functions

static newForTesting (ChangeTagsStore $changeTagsStore, UserEditTracker $userEditTracker, PermissionManager $permissionManager, WikiPageFactory $wikiPageFactory, HookContainer $hookContainer, UserNameUtils $userNameUtils, TalkPageNotificationManager $talkPageNotificationManager, Config $mainConfig, JobQueueGroup $jobQueueGroup, IContentHandlerFactory $contentHandlerFactory, RecentChangeFactory $recentChangeFactory)
 

Public Attributes

const EVENTS
 The events handled by this ingress subscriber.
 
const OBJECT_SPEC
 Object spec used for lazy instantiation.
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWiki\DomainEvent\DomainEventIngress
 getListenerOptions (string $eventType, string $suffix)
 Placeholder method for allowing subclasses to define listener options.
 
 registerForEvent (DomainEventSource $eventSource, string $eventType)
 Registered any listener methods for the given event.
 

Detailed Description

The ingress subscriber for the change tracking component.

It updates change tracking state according to domain events coming from other components.

Access: internal

Definition at line 34 of file ChangeTrackingEventIngress.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\RecentChanges\ChangeTrackingEventIngress::__construct ( ChangeTagsStore $changeTagsStore,
UserEditTracker $userEditTracker,
PermissionManager $permissionManager,
WikiPageFactory $wikiPageFactory,
HookContainer $hookContainer,
UserNameUtils $userNameUtils,
TalkPageNotificationManager $talkPageNotificationManager,
Config $mainConfig,
JobQueueGroup $jobQueueGroup,
IContentHandlerFactory $contentHandlerFactory,
RecentChangeFactory $recentChangeFactory )

Member Function Documentation

◆ handlePageLatestRevisionChangedEvent()

◆ newForTesting()

static MediaWiki\RecentChanges\ChangeTrackingEventIngress::newForTesting ( ChangeTagsStore $changeTagsStore,
UserEditTracker $userEditTracker,
PermissionManager $permissionManager,
WikiPageFactory $wikiPageFactory,
HookContainer $hookContainer,
UserNameUtils $userNameUtils,
TalkPageNotificationManager $talkPageNotificationManager,
Config $mainConfig,
JobQueueGroup $jobQueueGroup,
IContentHandlerFactory $contentHandlerFactory,
RecentChangeFactory $recentChangeFactory )
static

Definition at line 118 of file ChangeTrackingEventIngress.php.

Member Data Documentation

◆ EVENTS

const MediaWiki\RecentChanges\ChangeTrackingEventIngress::EVENTS
Initial value:
= [
PageLatestRevisionChangedEvent::TYPE
]

The events handled by this ingress subscriber.

See also
registerListeners()

Definition at line 43 of file ChangeTrackingEventIngress.php.

◆ OBJECT_SPEC

const MediaWiki\RecentChanges\ChangeTrackingEventIngress::OBJECT_SPEC
Initial value:
= [
'class' => self::class,
'services' => [
'ChangeTagsStore',
'UserEditTracker',
'PermissionManager',
'WikiPageFactory',
'HookContainer',
'UserNameUtils',
'TalkPageNotificationManager',
'MainConfig',
'JobQueueGroup',
'ContentHandlerFactory',
'RecentChangeFactory',
],
'events' => [
PageLatestRevisionChangedEvent::TYPE
],
]

Object spec used for lazy instantiation.

Using this spec with DomainEventSource::registerSubscriber defers instantiation until one of the listed events is dispatched. Declaring it as a constant avoids the overhead of using reflection for auto-wiring.

Definition at line 54 of file ChangeTrackingEventIngress.php.


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