disable server commands without Process component

This commit is contained in:
Christian Flothmann 2015-12-06 23:25:30 +01:00
parent dd82b6459d
commit 972c4caae8
2 changed files with 4 additions and 12 deletions

View File

@ -27,6 +27,10 @@ abstract class ServerCommand extends ContainerAwareCommand
return false;
}
if (!class_exists('Symfony\Component\Process\Process')) {
return false;
}
return parent::isEnabled();
}

View File

@ -25,18 +25,6 @@ use Symfony\Component\Process\ProcessBuilder;
*/
class ServerRunCommand extends ServerCommand
{
/**
* {@inheritdoc}
*/
public function isEnabled()
{
if (PHP_VERSION_ID < 50400 || defined('HHVM_VERSION')) {
return false;
}
return parent::isEnabled();
}
/**
* {@inheritdoc}
*/