Skip to content

Commit 29002d3

Browse files
committed
minor symfony#14972 [Lock] Update lock documentation for more clarity (Mohameth)
This PR was submitted for the 5.2 branch but it was merged into the 4.4 branch instead. Discussion ---------- [Lock] Update lock documentation for more clarity In response to symfony#9367, I also had some trouble understanding the meaning. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 6c8bbd6 Update lock documentation for more clarity
2 parents 126b105 + 6c8bbd6 commit 29002d3

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)