summaryrefslogtreecommitdiff
blob: 06fe226b4d31b461099610d20d5bf71aef07b30c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?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;
	}
}