From 99d174176afb9538ba921c3c47a3c049da8efc16 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 6 Dec 2015 23:20:00 +0100 Subject: [PATCH] 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 78468a5b7e..d417357cf3 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php @@ -34,6 +34,10 @@ class ServerRunCommand extends ContainerAwareCommand return false; } + if (!class_exists('Symfony\Component\Process\Process')) { + return false; + } + return parent::isEnabled(); }