Skip to content

Commit 82fa6e5

Browse files
committed
Merge branch '2.3' into 2.7
* 2.3: disable server:run cmd without Process component Suggested Process dependency
2 parents 37c17e7 + 4d9cce7 commit 82fa6e5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Command/ServerRunCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public function isEnabled()
3434
return false;
3535
}
3636

37+
if (!class_exists('Symfony\Component\Process\Process')) {
38+
return false;
39+
}
40+
3741
return parent::isEnabled();
3842
}
3943

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"symfony/serializer": "For using the serializer service",
5555
"symfony/validator": "For using validation",
5656
"symfony/yaml": "For using the debug:config and lint:yaml commands",
57+
"symfony/process": "For using the server:run command",
5758
"doctrine/cache": "For using alternative cache drivers"
5859
},
5960
"autoload": {

0 commit comments

Comments
 (0)