EmbeddedServer::_getScriptPath PHP Method

_getScriptPath() public method

Get platform-specific script name with extension.
public _getScriptPath ( $script ) : string
$script string The script name without extension.
return string script name with platform specific extension.
    function _getScriptPath($script)
    {
        $scriptPath = $this->_getScriptDirectory() . $script;
        if (Core::isWindows()) {
            $scriptPath .= '.bat';
        } else {
            $scriptPath .= '.sh';
        }
        return $scriptPath;
    }