[Console] Fix #5897 - Console component require Shell component
When setting the process isolation of a shell to true: `setProcessIsolation(true)` throw a `\RuntimeException` if the Process component isn't available.
This commit is contained in:
parent
275cf8cf00
commit
73bb47b6c5
@ -203,5 +203,9 @@ EOF;
|
||||
public function setProcessIsolation($processIsolation)
|
||||
{
|
||||
$this->processIsolation = (Boolean) $processIsolation;
|
||||
|
||||
if ($this->processIsolation && !class_exists('Symfony\\Component\\Process\\Process')) {
|
||||
throw new \RuntimeException('Unable to isolate processes as the Symfony Process Component is not installed.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user