mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 16:04:35 +00:00
81183a6d86
Change-Id: Id4fe59155d6e0fa2ef1ccf4dc46ee1f109265246
19 lines
431 B
PHP
19 lines
431 B
PHP
<?php
|
|
|
|
class EchoNotificationJob extends Job {
|
|
private $eventId;
|
|
|
|
public function __construct( $title, $params ) {
|
|
parent::__construct( 'EchoNotificationJob', $title, $params );
|
|
$this->eventId = $params['eventId'];
|
|
}
|
|
|
|
public function run() {
|
|
MWEchoDbFactory::newFromDefault()->waitForSlaves();
|
|
$event = EchoEvent::newFromID( $this->eventId );
|
|
EchoNotificationController::notify( $event, false );
|
|
|
|
return true;
|
|
}
|
|
}
|