mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
[feature/dic] Move cron manager into DIC
PHPBB3-10739
This commit is contained in:
@@ -142,5 +142,5 @@ foreach ($cache->obtain_hooks() as $hook)
|
|||||||
|
|
||||||
if (!$config['use_system_cron'])
|
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:
|
arguments:
|
||||||
- @dispatcher
|
- @dispatcher
|
||||||
- @ext.manager
|
- @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
|
||||||
|
Reference in New Issue
Block a user