MediaWiki master
|
The ingress subscriber for the change tracking component. More...
Inherits MediaWiki\DomainEvent\EventSubscriberBase.
Public Member Functions | |
__construct (ChangeTagsStore $changeTagsStore, UserEditTracker $userEditTracker) | |
handlePageUpdatedEventAfterCommit (PageUpdatedEvent $event) | |
Listener method for PageUpdatedEvent, to be registered with an 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(). | |
Static Public Member Functions | |
static | newForTesting (ChangeTagsStore $changeTagsStore, UserEditTracker $userEditTracker) |
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\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 ingress subscriber for the change tracking component.
It updates change tracking state according to domain events coming from other components.
Definition at line 20 of file ChangeTrackingEventIngress.php.
MediaWiki\RecentChanges\ChangeTrackingEventIngress::__construct | ( | ChangeTagsStore | $changeTagsStore, |
UserEditTracker | $userEditTracker ) |
ChangeTagsStore | $changeTagsStore | |
UserEditTracker | $userEditTracker |
Definition at line 55 of file ChangeTrackingEventIngress.php.
MediaWiki\RecentChanges\ChangeTrackingEventIngress::handlePageUpdatedEventAfterCommit | ( | PageUpdatedEvent | $event | ) |
Listener method for PageUpdatedEvent, to be registered with an DomainEventSource.
@noinspection PhpUnused
Definition at line 79 of file ChangeTrackingEventIngress.php.
References MediaWiki\Storage\PageUpdatedEvent\getAuthor(), MediaWiki\Storage\PageUpdatedEvent\getEditResult(), MediaWiki\Storage\PageUpdatedEvent\getNewRevision(), MediaWiki\Storage\PageUpdatedEvent\getOldRevision(), MediaWiki\Storage\PageUpdatedEvent\getPatrolStatus(), MediaWiki\Storage\PageUpdatedEvent\getTags(), MediaWiki\Storage\PageUpdatedEvent\hasFlag(), MediaWiki\Storage\PageUpdatedEvent\isContentChange(), and MediaWiki\Storage\PageUpdatedEvent\isRevisionChange().
|
static |
Definition at line 64 of file ChangeTrackingEventIngress.php.
const MediaWiki\RecentChanges\ChangeTrackingEventIngress::EVENTS |
The events handled by this ingress subscriber.
Definition at line 26 of file ChangeTrackingEventIngress.php.
const MediaWiki\RecentChanges\ChangeTrackingEventIngress::OBJECT_SPEC |
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 37 of file ChangeTrackingEventIngress.php.