public function getWellKnown()
    {
        $cached = $this->getCache('wellKnown');
        if (!empty($cached)) {
            return $cached;
        }

        try {
            $response = $this->client->get($this->wellKnownUrl);
        } catch (RequestException $e) {
            $this->lastException = $e;
            return null;
        }

        $output = json_decode($response->getBody());
        if (json_last_error() !== JSON_ERROR_NONE) {
            return null;
        }

        $this->setCache('wellKnown', $output);

        return $output;
    }
public function getWellKnown()
    {
        $cached = $this->getCache('wellKnown');
        if (!empty($cached)) {
            return $cached;
        }

        try {
            $response = $this->client->get($this->wellKnownUrl);
        } catch (RequestException $e) {
            $this->lastException = $e;
            return null;
        }

        $output = json_decode($response->getBody());
        if (json_last_error() !== JSON_ERROR_NONE) {
            return null;
        }

        $this->setCache('wellKnown', $output);

        return $output;
    }
public function getWellKnown ( ) { $ cached = $ this -> getCache ( 'wellKnown' ) ; if ( ! empty ( $ cached ) ) { return $ cached ; } try { $ response = $ this -> client -> get ( $ this -> wellKnownUrl ) ; } catch ( RequestException $ e ) { $ this -> lastException = $ e ; return null ; } $ output = json_decode ( $ response -> getBody ( ) ) ; if ( json_last_error ( ) !== JSON_ERROR_NONE ) { return null ; } $ this -> setCache ( 'wellKnown' , $ output ) ; return $ output ; }
Get the response of the specified .well-known URL.

@return object Parsed JSON response from the well known URL
Get the response of the specified . well - known URL .