Skip to content

Commit 5313736

Browse files
artyuumfabpot
authored andcommitted
Add "composer require..." in all exception messages when needed
1 parent 630d7b7 commit 5313736

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

ExpressionRequestMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function setExpression(ExpressionLanguage $language, Expression|string $e
4141
public function matches(Request $request): bool
4242
{
4343
if (!isset($this->language)) {
44-
throw new \LogicException('Unable to match the request as the expression language is not available.');
44+
throw new \LogicException('Unable to match the request as the expression language is not available. Try running "composer require symfony/expression-language".');
4545
}
4646

4747
return $this->language->evaluate($this->expression, [

composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
"conflict": {
3535
"symfony/cache": "<6.2"
3636
},
37-
"suggest" : {
38-
"symfony/mime": "To use the file extension guesser"
39-
},
4037
"autoload": {
4138
"psr-4": { "Symfony\\Component\\HttpFoundation\\": "" },
4239
"exclude-from-classmap": [

0 commit comments

Comments
 (0)