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::
3939 $store = new SemaphoreStore();
4040 $factory = new Factory($store);
4141
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::
4546
4647 // ...
4748 $lock = $factory->createLock('pdf-invoice-generation');
You can’t perform that action at this time.
0 commit comments