Webiny\Component\OAuth2\OAuth2::processUrl PHP Method

processUrl() private method

Replaces the url variables with real data.
private processUrl ( string $url ) : string
$url string Url to process.
return string Processed url.
    private function processUrl($url)
    {
        $vars = ['{CLIENT_ID}' => $this->getClientId(), '{REDIRECT_URI}' => $this->getRedirectURI(), '{SCOPE}' => $this->getScope(), '{STATE}' => $this->getState(), " " => '', "\n" => '', "\r" => '', "\t" => ''];
        $url = str_replace(array_keys($vars), array_values($vars), $url);
        return $url;
    }