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

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

src/Symfony/Bundle/FrameworkBundle/composer.json

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy