Platformsh\Cli\Api::getUserAgent PHP Method

getUserAgent() protected method

Get an HTTP User Agent string representing this application.
protected getUserAgent ( ) : string
return string
    protected function getUserAgent()
    {
        return sprintf('%s/%s (%s; %s; PHP %s)', str_replace(' ', '-', $this->config->get('application.name')), $this->config->get('application.version'), php_uname('s'), php_uname('r'), PHP_VERSION);
    }