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:
parent
776160a7e3
commit
bca600877c
@ -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');
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user