Aimeos\ShopBundle\Composer\ScriptHandler::getPhp PHP Method

getPhp() protected static method

Returns the path to the PHP interpreter.
protected static getPhp ( ) : string
return string Path to the PHP command
    protected static function getPhp()
    {
        $phpFinder = new PhpExecutableFinder();
        if (!($phpPath = $phpFinder->find())) {
            throw new \RuntimeException('The php executable could not be found, add it to your PATH environment variable and try again');
        }
        return $phpPath;
    }