Skip to content

Commit 0bc67e2

Browse files
author
Bohdan Korablov
committed
MAGETWO-94369: [Forwardport] Move cron improvements from 2.2 to 2.3
1 parent 739c502 commit 0bc67e2

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

lib/internal/Magento/Framework/Lock/Backend/Database.php

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,32 @@
1414
use Magento\Framework\Exception\InputException;
1515
use Magento\Framework\Phrase;
1616

17+
/**
18+
* LockManager using the DB locks
19+
*/
1720
class Database implements \Magento\Framework\Lock\LockManagerInterface
1821
{
19-
/** @var ResourceConnection */
22+
/**
23+
* @var ResourceConnection
24+
*/
2025
private $resource;
2126

22-
/** @var DeploymentConfig */
27+
/**
28+
* @var DeploymentConfig
29+
*/
2330
private $deploymentConfig;
2431

25-
/** @var string Lock prefix */
32+
/**
33+
* @var string Lock prefix
34+
*/
2635
private $prefix;
2736

28-
/** @var string|false Holds current lock name if set, otherwise false */
37+
/**
38+
* @var string|false Holds current lock name if set, otherwise false
39+
*/
2940
private $currentLock = false;
3041

3142
/**
32-
* Database constructor.
33-
*
3443
* @param ResourceConnection $resource
3544
* @param DeploymentConfig $deploymentConfig
3645
* @param string|null $prefix

lib/internal/Magento/Framework/Lock/Test/Unit/Backend/DatabaseTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ class DatabaseTest extends \PHPUnit\Framework\TestCase
3131
*/
3232
private $objectManager;
3333

34-
/** @var Database $database */
34+
/**
35+
* @var Database $database
36+
*/
3537
private $database;
3638

3739
protected function setUp()

0 commit comments

Comments
 (0)