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:
parent
35c78c127b
commit
e78fbfef9c
@ -114,3 +114,10 @@ services:
|
||||
arguments:
|
||||
- @cron.task_provider
|
||||
- @cache.driver
|
||||
|
||||
cron.lock_db:
|
||||
class: phpbb_lock_db
|
||||
arguments:
|
||||
- cron_lock
|
||||
- @config
|
||||
- @dbal.conn
|
||||
|
@ -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'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user