Skip to content

Commit 359e243

Browse files
artyuumfabpot
authored andcommitted
Add "composer require..." in all exception messages when needed
1 parent ed4997f commit 359e243

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Command/LockableTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ trait LockableTrait
3232
private function lock(string $name = null, bool $blocking = false): bool
3333
{
3434
if (!class_exists(SemaphoreStore::class)) {
35-
throw new LogicException('To enable the locking feature you must install the symfony/lock component.');
35+
throw new LogicException('To enable the locking feature you must install the symfony/lock component. Try running "composer require symfony/lock".');
3636
}
3737

3838
if (null !== $this->lock) {

composer.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@
3434
"provide": {
3535
"psr/log-implementation": "1.0|2.0|3.0"
3636
},
37-
"suggest": {
38-
"symfony/event-dispatcher": "",
39-
"symfony/lock": "",
40-
"symfony/process": "",
41-
"psr/log": "For using the console logger"
42-
},
4337
"conflict": {
4438
"symfony/dependency-injection": "<5.4",
4539
"symfony/dotenv": "<5.4",

0 commit comments

Comments
 (0)