1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

[feature/dic] Move cron manager into DIC

PHPBB3-10739
This commit is contained in:
Igor Wiedler 2012-03-31 20:27:46 +02:00
parent 776160a7e3
commit bca600877c
2 changed files with 12 additions and 1 deletions

View File

@ -142,5 +142,5 @@ foreach ($cache->obtain_hooks() as $hook)
if (!$config['use_system_cron'])
{
$cron = new phpbb_cron_manager(new phpbb_cron_task_provider($phpbb_extension_manager), $cache->get_driver());
$cron = $container->get('cron.manager');
}

View File

@ -80,3 +80,14 @@ services:
arguments:
- @dispatcher
- @ext.manager
cron.task_provider:
class: phpbb_cron_task_provider
arguments:
- @ext.manager
cron.manager:
class: phpbb_cron_manager
arguments:
- @cron.task_provider
- @cache.driver