aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/cron/task/provider.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2012-04-09 14:34:35 +0200
committerIgor Wiedler <igor@wiedler.ch>2012-04-09 14:34:35 +0200
commit3896ee953fbdb45d0485c0b5dcdfca47409a22ed (patch)
tree86cee60150ff75d33332a60140230a4aaa780c97 /phpBB/includes/cron/task/provider.php
parentaa0c995ed9cdafa2dfaca23b54d5b4cf6323f794 (diff)
downloadforums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.tar
forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.tar.gz
forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.tar.bz2
forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.tar.xz
forums-3896ee953fbdb45d0485c0b5dcdfca47409a22ed.zip
[feature/dic] Give all cron tasks a name, change some manager usage
PHPBB3-10739
Diffstat (limited to 'phpBB/includes/cron/task/provider.php')
-rw-r--r--phpBB/includes/cron/task/provider.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/cron/task/provider.php b/phpBB/includes/cron/task/provider.php
index acc3d455ec..9994d707f2 100644
--- a/phpBB/includes/cron/task/provider.php
+++ b/phpBB/includes/cron/task/provider.php
@@ -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);