mediawiki-extensions-Echo/jobs/NotificationJob.php
Andrew Garrett 46b3024b4a Echo: Defer notifications using the Job Queue
In future it may be necessary to break them down an extra level.

Change-Id: I65e5a285e7d5797636e118c5e3e78b94df9af3d4
2012-06-08 15:30:09 +10:00

12 lines
277 B
PHP

<?php
class EchoNotificationJob extends Job {
function __construct( $title, $params ) {
parent::__construct( 'EchoNotificationJob', $title, $params );
$this->event = $params['event'];
}
function run() {
EchoNotificationController::notify( $this->event, false );
}
}