1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-13 20:28:44 +01:00

[feature/dic] Move cron.lock_db into DIC

PHPBB3-10739
This commit is contained in:
Igor Wiedler 2012-04-01 01:13:00 +02:00
parent 35c78c127b
commit e78fbfef9c
2 changed files with 8 additions and 1 deletions

View File

@ -114,3 +114,10 @@ services:
arguments:
- @cron.task_provider
- @cache.driver
cron.lock_db:
class: phpbb_lock_db
arguments:
- cron_lock
- @config
- @dbal.conn

View File

@ -71,7 +71,7 @@ else
output_image();
}
$cron_lock = new phpbb_lock_db('cron_lock', $config, $db);
$cron_lock = $container->get('cron.lock_db');
if ($cron_lock->acquire())
{
if ($config['use_system_cron'])