From 2e4335fc70dc51151374f0b86331723794914a22 Mon Sep 17 00:00:00 2001 From: Noel Light-Hilary Date: Tue, 4 May 2021 13:06:07 +0100 Subject: [PATCH] Expand `LockConflictedException` docs The goal of this is to reduce the chance of bad assumptions about lock acquisition behaviour. Fixes #40969 --- .../Component/Lock/Exception/LockConflictedException.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Symfony/Component/Lock/Exception/LockConflictedException.php b/src/Symfony/Component/Lock/Exception/LockConflictedException.php index 8fcd6a836d..d882b8d029 100644 --- a/src/Symfony/Component/Lock/Exception/LockConflictedException.php +++ b/src/Symfony/Component/Lock/Exception/LockConflictedException.php @@ -11,9 +11,13 @@ namespace Symfony\Component\Lock\Exception; +use Symfony\Component\Lock\Lock; + /** * LockConflictedException is thrown when a lock is acquired by someone else. * + * In non-blocking mode it is caught by {@see Lock::acquire()} and {@see Lock::acquireRead()}. + * * @author Jérémy Derussé */ class LockConflictedException extends \RuntimeException implements ExceptionInterface