/** * Creates a new instance of this OAuth handler. * @param string $server the auth server to make OAuth2 request against * @param CurlUtils $curlUtils an instance of CurlUtils */ public function __construct($server = NULL, $curlUtils = NULL) { parent::__construct($server); $this->curlUtils = is_null($curlUtils) ? new CurlUtils() : $curlUtils; }
/** * @param array $scopes optional, Google API scopes this handler should use * @param CurlUtils $curlUtils optional, curl utility to be used for HTTP */ public function __construct(array $scope = null, CurlUtils $curlUtils = null) { parent::__construct($scope); $this->curlUtils = $curlUtils === null ? new CurlUtils() : $curlUtils; }
/** * Creates a new instance of this OAuth handler. * @param string $server the auth server to make OAuth2 request against * @param CurlUtils $curlUtils an instance of CurlUtils */ public function __construct($server = null, $scope = null, $curlUtils = null) { parent::__construct($server, $scope); $this->curlUtils = is_null($curlUtils) ? new CurlUtils() : $curlUtils; }
public function __construct($server = NULL) { parent::__construct($server); }