mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-11 07:26:29 +00:00
0efef4faf3
I found candidates for this by looking for parameters names that end with a plural "s". Change-Id: I61c706eb4dfbdadceb0129afd724e6ce1eb4f4a8
17 lines
390 B
PHP
17 lines
390 B
PHP
<?php
|
|
|
|
class EchoNotificationJob extends Job {
|
|
|
|
public function __construct( Title $title, array $params ) {
|
|
parent::__construct( 'EchoNotificationJob', $title, $params );
|
|
}
|
|
|
|
public function run() {
|
|
$eventMapper = new EchoEventMapper();
|
|
$event = $eventMapper->fetchById( $this->params['eventId'], true );
|
|
EchoNotificationController::notify( $event, false );
|
|
|
|
return true;
|
|
}
|
|
}
|