mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
[feature/dic] Move cron.lock_db into DIC
PHPBB3-10739
This commit is contained in:
@@ -114,3 +114,10 @@ services:
|
|||||||
arguments:
|
arguments:
|
||||||
- @cron.task_provider
|
- @cron.task_provider
|
||||||
- @cache.driver
|
- @cache.driver
|
||||||
|
|
||||||
|
cron.lock_db:
|
||||||
|
class: phpbb_lock_db
|
||||||
|
arguments:
|
||||||
|
- cron_lock
|
||||||
|
- @config
|
||||||
|
- @dbal.conn
|
||||||
|
@@ -71,7 +71,7 @@ else
|
|||||||
output_image();
|
output_image();
|
||||||
}
|
}
|
||||||
|
|
||||||
$cron_lock = new phpbb_lock_db('cron_lock', $config, $db);
|
$cron_lock = $container->get('cron.lock_db');
|
||||||
if ($cron_lock->acquire())
|
if ($cron_lock->acquire())
|
||||||
{
|
{
|
||||||
if ($config['use_system_cron'])
|
if ($config['use_system_cron'])
|
||||||
|
Reference in New Issue
Block a user