We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c61a63d commit f7d88a1Copy full SHA for f7d88a1
Command/LockableTrait.php
@@ -12,7 +12,6 @@
12
namespace Symfony\Component\Console\Command;
13
14
use Symfony\Component\Console\Exception\LogicException;
15
-use Symfony\Component\Console\Exception\RuntimeException;
16
use Symfony\Component\Lock\Factory;
17
use Symfony\Component\Lock\Lock;
18
use Symfony\Component\Lock\Store\FlockStore;
@@ -36,7 +35,7 @@ trait LockableTrait
36
35
private function lock($name = null, $blocking = false)
37
{
38
if (!class_exists(SemaphoreStore::class)) {
39
- throw new RuntimeException('To enable the locking feature you must install the symfony/lock component.');
+ throw new LogicException('To enable the locking feature you must install the symfony/lock component.');
40
}
41
42
if (null !== $this->lock) {
0 commit comments