1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[feature/dic] Give all cron tasks a name, change some manager usage

PHPBB3-10739
This commit is contained in:
Igor Wiedler
2012-04-09 14:34:35 +02:00
parent aa0c995ed9
commit 3896ee953f
8 changed files with 61 additions and 23 deletions

View File

@@ -45,7 +45,12 @@ class phpbb_cron_task_provider implements IteratorAggregate
$tasks = array();
foreach ($definitions as $name => $definition)
{
$tasks[] = $this->container->get($name);
$task = $this->container->get($name);
if ($task instanceof phpbb_cron_task_base) {
$task->set_name($name);
}
$tasks[] = $task;
}
return new ArrayIterator($tasks);