File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,17 @@ not executed more than once at the same time (on the same or different servers).
27
27
Locks are created using a :class: `Symfony\\ Component\\ Lock\\ Factory ` class,
28
28
which in turn requires another class to manage the storage of locks::
29
29
30
- use Symfony\Component\Lock\Factory ;
30
+ use Symfony\Component\Lock\LockFactory ;
31
31
use Symfony\Component\Lock\Store\SemaphoreStore;
32
32
33
33
$store = new SemaphoreStore();
34
34
$factory = new Factory($store);
35
35
36
+ .. versionadded :: 4.4
37
+
38
+ The ``Symfony\Component\Lock\LockFactory `` class was introduced in Symfony
39
+ 4.4. In previous versions it was called ``Symfony\Component\Lock\Factory ``.
40
+
36
41
The lock is created by calling the :method: `Symfony\\ Component\\ Lock\\ Factory::createLock `
37
42
method. Its first argument is an arbitrary string that represents the locked
38
43
resource. Then, a call to the :method: `Symfony\\ Component\\ Lock\\ LockInterface::acquire `
@@ -77,7 +82,7 @@ until the lock is acquired.
77
82
Some of the built-in ``Store `` classes support this feature. When they don't,
78
83
they can be decorated with the ``RetryTillSaveStore `` class::
79
84
80
- use Symfony\Component\Lock\Factory ;
85
+ use Symfony\Component\Lock\LockFactory ;
81
86
use Symfony\Component\Lock\Store\RedisStore;
82
87
use Symfony\Component\Lock\Store\RetryTillSaveStore;
83
88
You can’t perform that action at this time.
0 commit comments