Skip to content

Commit b05f481

Browse files
committed
minor symfony#41107 [Lock] Expand LockConflictedException docs (NoelLH)
This PR was merged into the 4.4 branch. Discussion ---------- [Lock] Expand `LockConflictedException` docs The goal of this is to reduce the chance of bad assumptions about lock acquisition behaviour. Fixes symfony#40969 | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix symfony#40969 | License | MIT | Doc PR | N/A The goal of this tweak is to reduce the chance of bad assumptions about lock acquisition behaviour. As per symfony#40970 with suggested fixes, except now targeting the correct branch. Commits ------- 2e4335f Expand `LockConflictedException` docs
2 parents 88dcf52 + 2e4335f commit b05f481

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Lock/Exception/LockConflictedException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@
1111

1212
namespace Symfony\Component\Lock\Exception;
1313

14+
use Symfony\Component\Lock\Lock;
15+
1416
/**
1517
* LockConflictedException is thrown when a lock is acquired by someone else.
1618
*
19+
* In non-blocking mode it is caught by {@see Lock::acquire()} and {@see Lock::acquireRead()}.
20+
*
1721
* @author Jérémy Derussé <[email protected]>
1822
*/
1923
class LockConflictedException extends \RuntimeException implements ExceptionInterface

0 commit comments

Comments
 (0)