[feature/system-cron] Require cron task wrapper constructor to be a cron task.

PHPBB3-9596
This commit is contained in:
Oleg Pudeyev 2010-05-09 16:19:01 -04:00
parent 72699b72fb
commit 8cc2819610

View file

@ -33,7 +33,7 @@ class cron_task_wrapper
/** /**
* Wraps a task $task, which must implement cron_task interface. * Wraps a task $task, which must implement cron_task interface.
*/ */
public function __construct($task) public function __construct(cron_task $task)
{ {
$this->task = $task; $this->task = $task;
} }