Skip to content

Commit e5dda01

Browse files
committed
bug #16870 [FrameworkBundle] Disable the server:run command when Process component is missing (gnugat, xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- [FrameworkBundle] Disable the server:run command when Process component is missing | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | This also backports the improvement for the `suggest` section from #16650 to the `2.3` branch. Commits ------- 99d1741 disable server:run cmd without Process component 604174c Suggested Process dependency
2 parents 800232c + 99d1741 commit e5dda01

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php

+4
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

src/Symfony/Bundle/FrameworkBundle/composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"symfony/finder": "For using the translation loader and cache warmer",
4949
"symfony/form": "For using forms",
5050
"symfony/validator": "For using validation",
51-
"symfony/serializer": "For using the serializer service"
51+
"symfony/serializer": "For using the serializer service",
52+
"symfony/process": "For using the server:run command"
5253
},
5354
"autoload": {
5455
"psr-0": { "Symfony\\Bundle\\FrameworkBundle\\": "" },

0 commit comments

Comments
 (0)