TaskScheduler: remove deprecated constructor parameter

This commit is contained in:
Dylan K. Taylor 2018-11-04 23:30:04 +00:00
parent 0028ce0ed2
commit 6437078c8b
2 changed files with 2 additions and 3 deletions

View File

@ -67,7 +67,7 @@ abstract class PluginBase implements Plugin{
$this->file = rtrim($file, "\\/") . "/";
$this->configFile = $this->dataFolder . "config.yml";
$this->logger = new PluginLogger($this);
$this->scheduler = new TaskScheduler($this->logger, $this->getFullName());
$this->scheduler = new TaskScheduler($this->getFullName());
$this->onLoad();
}

View File

@ -53,10 +53,9 @@ class TaskScheduler{
protected $currentTick = 0;
/**
* @param \Logger $logger @deprecated
* @param null|string $owner
*/
public function __construct(\Logger $logger, ?string $owner = null){
public function __construct(?string $owner = null){
$this->owner = $owner;
$this->queue = new ReversePriorityQueue();
}