call() public method

Call function using detached isolated process.
public call ( $func, array $params = [] ) : string
$func
$params array
return string
Example #1
0
 /**
  * @override
  * @inheritDoc
  */
 public function run($command)
 {
     $command = $command . '>/dev/null 2>&1 & echo $!';
     if ($this->isolator !== null) {
         return $this->isolator->call('exec', [$command]);
     } else {
         return exec($command);
     }
 }