Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[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.
  • Loading branch information...
commit fb16385d9301046b519740f273b25bcd7032ed54 1 parent 61ecc4b
@alias-mac alias-mac authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 Shell.php
View
4 Shell.php
@@ -203,5 +203,9 @@ public function getProcessIsolation()
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.');
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.