mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/LoginNotify
synced 2024-11-12 01:01:38 +00:00
21 lines
440 B
PHP
21 lines
440 B
PHP
|
<?php
|
||
|
|
||
|
namespace LoginNotify;
|
||
|
|
||
|
use MediaWiki\Title\Title;
|
||
|
|
||
|
class PurgeSeenJob extends \Job {
|
||
|
private $loginNotify;
|
||
|
|
||
|
public function __construct( Title $title, array $params, LoginNotify $loginNotify ) {
|
||
|
parent::__construct( 'LoginNotifyPurgeSeen', $title, $params );
|
||
|
$this->loginNotify = $loginNotify;
|
||
|
}
|
||
|
|
||
|
public function run() {
|
||
|
$minId = $this->getParams()['minId'];
|
||
|
$this->loginNotify->purgeSeen( $minId );
|
||
|
return true;
|
||
|
}
|
||
|
}
|