From 604174c963ff36f3d9680045b8fa43f349dd3732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Faugeron?= Date: Tue, 24 Nov 2015 11:52:35 +0000 Subject: [PATCH 1/2] Suggested Process dependency The `server:run` command requires the Process component. --- src/Symfony/Bundle/FrameworkBundle/composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/composer.json b/src/Symfony/Bundle/FrameworkBundle/composer.json index 9983848d7bf0b..e68290ec1b75e 100644 --- a/src/Symfony/Bundle/FrameworkBundle/composer.json +++ b/src/Symfony/Bundle/FrameworkBundle/composer.json @@ -48,7 +48,8 @@ "symfony/finder": "For using the translation loader and cache warmer", "symfony/form": "For using forms", "symfony/validator": "For using validation", - "symfony/serializer": "For using the serializer service" + "symfony/serializer": "For using the serializer service", + "symfony/process": "For using the server:run command" }, "autoload": { "psr-0": { "Symfony\\Bundle\\FrameworkBundle\\": "" }, From 99d174176afb9538ba921c3c47a3c049da8efc16 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 6 Dec 2015 23:20:00 +0100 Subject: [PATCH 2/2] disable server:run cmd without Process component --- .../Bundle/FrameworkBundle/Command/ServerRunCommand.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php index 78468a5b7e3df..d417357cf32a0 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php @@ -34,6 +34,10 @@ public function isEnabled() return false; } + if (!class_exists('Symfony\Component\Process\Process')) { + return false; + } + return parent::isEnabled(); }