SimpleOAuth2Handler::__construct PHP Метод

__construct() публичный Метод

public __construct ( array $scope = null, CurlUtils $curlUtils = null )
$scope array
$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;
    }

Usage Example

 public function __construct($server = null)
 {
     parent::__construct($server);
     $this->response = array();
 }
All Usage Examples Of SimpleOAuth2Handler::__construct