From 2035fea2a8d5780241ef6ac70105ce87e43bf184 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 23 Nov 2014 20:04:20 +0100 Subject: [PATCH] remove an unneeded check It is already checked in the `isEnabled()` method if the current PHP build is HHVM and the `server:run` command is never enabled then. Thus, it's not needed to check for HHVM on every command execution. --- .../Bundle/FrameworkBundle/Command/ServerRunCommand.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php index 475dbeadc0..f125c36fa6 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php @@ -83,12 +83,6 @@ EOF */ protected function execute(InputInterface $input, OutputInterface $output) { - if (defined('HHVM_VERSION')) { - $output->writeln('This command is not supported on HHVM.'); - - return 1; - } - $documentRoot = $input->getOption('docroot'); if (null === $documentRoot) {