mediawiki-extensions-Echo/includes/jobs/NotificationJob.php
Thiemo Kreuz 0efef4faf3 Add strict "array" type hints to code expecting arrays
I found candidates for this by looking for parameters names that end
with a plural "s".

Change-Id: I61c706eb4dfbdadceb0129afd724e6ce1eb4f4a8
2019-10-24 15:18:58 +00:00

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;
}
}