Barryvdh\Queue\AsyncQueue::getPhpBinary PHP Method

getPhpBinary() protected method

Get the escaped PHP Binary from the configuration
protected getPhpBinary ( ) : string
return string
    protected function getPhpBinary()
    {
        $path = $this->binary;
        if (!defined('PHP_WINDOWS_VERSION_BUILD')) {
            $path = escapeshellarg($path);
        }
        $args = $this->binaryArgs;
        if (is_array($args)) {
            $args = implode(' ', $args);
        }
        return trim($path . ' ' . $args);
    }