public function newAuthExtension(RequestPluginAdapter $authExtension = null)
    {
        if (empty($authExtension)) {
            $authExtension = new GuzzleAuth($this->credentials);
        }

        return $authExtension;

    }
public function newAuthExtension(RequestPluginAdapter $authExtension = null)
    {
        if (empty($authExtension)) {
            $authExtension = new GuzzleAuth($this->credentials);
        }

        return $authExtension;

    }
public function newAuthExtension ( RequestPluginAdapter $ authExtension = null ) { if ( empty ( $ authExtension ) ) { $ authExtension = new GuzzleAuth ( $ this -> credentials ) ; } return $ authExtension ; }
Object builder to create auth plugin extension for request client.
In this case, it creates GuzzleAuth object by default.

@param  \RestGalleries\Http\RequestPluginAdapter $authExtension
@return \RestGalleries\Http\RequestPluginAdapter
Object builder to create auth plugin extension for request client . In this case it creates GuzzleAuth object by default .