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...
1 parent 61ecc4b commit fb16385d9301046b519740f273b25bcd7032ed54 @alias-mac alias-mac committed Nov 4, 2012
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.');
+ }
}
}

0 comments on commit fb16385

Please sign in to comment.