mediawiki-extensions-Echo/includes/jobs/NotificationJob.php

17 lines
390 B
PHP
Raw Normal View History

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