Skip to content

Commit 582d217

Browse files
artyuumfabpot
authored andcommitted
Add "composer require..." in all exception messages when needed
1 parent 83626a8 commit 582d217

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

AbstractBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function getMaxRedirects(): int
118118
public function insulate(bool $insulated = true)
119119
{
120120
if ($insulated && !class_exists(\Symfony\Component\Process\Process::class)) {
121-
throw new LogicException('Unable to isolate requests as the Symfony Process Component is not installed.');
121+
throw new LogicException('Unable to isolate requests as the Symfony Process Component is not installed. Try running "composer require symfony/process".');
122122
}
123123

124124
$this->insulated = $insulated;

composer.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
"symfony/mime": "^5.4|^6.0",
2626
"symfony/process": "^5.4|^6.0"
2727
},
28-
"suggest": {
29-
"symfony/process": ""
30-
},
3128
"autoload": {
3229
"psr-4": { "Symfony\\Component\\BrowserKit\\": "" },
3330
"exclude-from-classmap": [

0 commit comments

Comments
 (0)