disable server commands without Process component
This commit is contained in:
parent
dd82b6459d
commit
972c4caae8
@ -27,6 +27,10 @@ abstract class ServerCommand extends ContainerAwareCommand
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!class_exists('Symfony\Component\Process\Process')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return parent::isEnabled();
|
return parent::isEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,18 +25,6 @@ use Symfony\Component\Process\ProcessBuilder;
|
|||||||
*/
|
*/
|
||||||
class ServerRunCommand extends ServerCommand
|
class ServerRunCommand extends ServerCommand
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function isEnabled()
|
|
||||||
{
|
|
||||||
if (PHP_VERSION_ID < 50400 || defined('HHVM_VERSION')) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return parent::isEnabled();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user