Symfony\Component\Process\PhpProcess::setPhpBinary PHP Method

setPhpBinary() public method

Sets the path to the PHP binary to use.
public setPhpBinary ( $php )
    public function setPhpBinary($php)
    {
        $this->commandline = $php;
    }

Usage Example

Beispiel #1
0
 /**
  * Create process
  */
 protected function createProcess()
 {
     // initialisation du process
     $this->process = new PhpProcess($this->getScript(), $this->getConfiguration()->getCwd(), $this->getConfiguration()->getEnv(), $this->getConfiguration()->getTimeout());
     if ($this->configuration->getParameter('PHP_BINARY')) {
         $this->process->setPhpBinary($this->configuration->getParameter('PHP_BINARY'));
     }
 }
All Usage Examples Of Symfony\Component\Process\PhpProcess::setPhpBinary