File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,9 +39,10 @@ create the lock for some resource::
39
39
$store = new SemaphoreStore();
40
40
$factory = new Factory($store);
41
41
42
- Then, a call to the :method: `Symfony\\ Component\\ Lock\\ LockInterface::acquire `
43
- method will try to acquire the lock. Its first argument is an arbitrary string
44
- that represents the locked resource::
42
+ The lock can be created by calling the :method: `Symfony\\ Component\\ Lock\\ Factory::createLock `
43
+ method. Its first argument is an arbitrary string that represents the locked
44
+ resource. Then, a call to the :method: `Symfony\\ Component\\ Lock\\ LockInterface::acquire `
45
+ method will try to acquire the lock::
45
46
46
47
// ...
47
48
$lock = $factory->createLock('pdf-invoice-generation');
You can’t perform that action at this time.
0 commit comments