Bootstrap/WorkerBootstrapProfile.php
public function getOrFindPhpExecutablePathAndArguments(&$phpExecutablePath, &$phpArguments)
    {
        $phpExecutablePath = $this->phpExecutablePath;
        $phpArguments = $this->phpArguments;
        if ($phpExecutablePath === null || $phpArguments === null) {
            $executableFinder = new PhpExecutableFinder();
            if ($phpExecutablePath === null) {
                $phpExecutablePath = $executableFinder->find(false);
                if ($phpExecutablePath === false) {
                    throw new Exception\RuntimeException('Unable to find the PHP executable.');
                }
            }
            if ($phpArguments === null) {
                $phpArguments = $executableFinder->findArguments();
            }
        }

        return $this;
    }
public function getOrFindPhpExecutablePathAndArguments(&$phpExecutablePath, &$phpArguments)
    {
        $phpExecutablePath = $this->phpExecutablePath;
        $phpArguments = $this->phpArguments;
        if ($phpExecutablePath === null || $phpArguments === null) {
            $executableFinder = new PhpExecutableFinder();
            if ($phpExecutablePath === null) {
                $phpExecutablePath = $executableFinder->find(false);
                if ($phpExecutablePath === false) {
                    throw new Exception\RuntimeException('Unable to find the PHP executable.');
                }
            }
            if ($phpArguments === null) {
                $phpArguments = $executableFinder->findArguments();
            }
        }

        return $this;
    }
public function getOrFindPhpExecutablePathAndArguments ( & $ phpExecutablePath , & $ phpArguments ) { $ phpExecutablePath = $ this -> phpExecutablePath ; $ phpArguments = $ this -> phpArguments ; if ( $ phpExecutablePath === null || $ phpArguments === null ) { $ executableFinder = new PhpExecutableFinder ( ) ; if ( $ phpExecutablePath === null ) { $ phpExecutablePath = $ executableFinder -> find ( false ) ; if ( $ phpExecutablePath === false ) { throw new Exception \ RuntimeException ( 'Unable to find the PHP executable.' ) ; } } if ( $ phpArguments === null ) { $ phpArguments = $ executableFinder -> findArguments ( ) ; } } return $ this ; }
@param string|null $phpExecutablePath
@param array|null  $phpArguments

@return $this
@param string|null $phpExecutablePath @param array|null $phpArguments