protected function createClient($id, $config)
    {
        $config['id'] = $id;

        if (!isset($config['httpClient']) && $this->httpClient !== null) {
            $config['httpClient'] = $this->httpClient;
        }

        return Yii::createObject($config);
    }
protected function createClient($id, $config)
    {
        $config['id'] = $id;

        if (!isset($config['httpClient']) && $this->httpClient !== null) {
            $config['httpClient'] = $this->httpClient;
        }

        return Yii::createObject($config);
    }
protected function createClient ( $ id , $ config ) { $ config [ 'id' ] = $ id ; if ( ! isset ( $ config [ 'httpClient' ] ) && $ this -> httpClient !== null ) { $ config [ 'httpClient' ] = $ this -> httpClient ; } return Yii :: createObject ( $ config ) ; }
Creates auth client instance from its array configuration.
@param string $id auth client id.
@param array $config auth client instance configuration.
@return ClientInterface auth client instance.
Creates auth client instance from its array configuration .