Skip to content

Commit 6c8bbd6

Browse files
Mohamethjaviereguiluz
authored andcommitted
Update lock documentation for more clarity
In response to symfony#9367, I also had some understanding the meaning.
1 parent 126b105 commit 6c8bbd6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/lock.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ method can be safely called repeatedly, even if the lock is already acquired.
6262
.. note::
6363

6464
Unlike other implementations, the Lock Component distinguishes locks
65-
instances even when they are created for the same resource. If a lock has
66-
to be used by several services, they should share the same ``Lock`` instance
67-
returned by the ``LockFactory::createLock`` method.
65+
instances even when they are created for the same resource. It means that for
66+
a given scope and resource one lock instance can be acquired multiple times.
67+
If a lock has to be used by several services, they should share the same ``Lock``
68+
instance returned by the ``LockFactory::createLock`` method.
6869

6970
.. tip::
7071

0 commit comments

Comments
 (0)