1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-23 16:52:54 +02:00

[feature/dic] Rewrite cron system to use DIC

PHPBB3-10739
This commit is contained in:
Igor Wiedler
2012-04-09 00:22:55 +02:00
parent 9165a045c5
commit 2e76620c88
16 changed files with 257 additions and 165 deletions

View File

@@ -193,7 +193,9 @@ if ($forum_data['forum_topics_per_page'])
// Do the forum Prune thang - cron type job ...
if (!$config['use_system_cron'])
{
$task = $cron->instantiate_task('cron_task_core_prune_forum', $forum_data);
$task = $container->get('cron.task.core.prune_forum');
$task = new phpbb_cron_task_wrapper($task);
$task->set_forum_data($forum_data);
if ($task && $task->is_ready())
{
$url = $task->get_url();