Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/3rdparty.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'aws/aws-crt-php/src/AWS/CRT/Auth/CredentialsProvider.php')
-rw-r--r--aws/aws-crt-php/src/AWS/CRT/Auth/CredentialsProvider.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/aws/aws-crt-php/src/AWS/CRT/Auth/CredentialsProvider.php b/aws/aws-crt-php/src/AWS/CRT/Auth/CredentialsProvider.php
new file mode 100644
index 00000000..e9d35886
--- /dev/null
+++ b/aws/aws-crt-php/src/AWS/CRT/Auth/CredentialsProvider.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
+ * SPDX-License-Identifier: Apache-2.0.
+ */
+namespace AWS\CRT\Auth;
+
+use AWS\CRT\NativeResource as NativeResource;
+
+/**
+ * Base class for credentials providers
+ */
+abstract class CredentialsProvider extends NativeResource {
+
+ function __construct(array $options = []) {
+ parent::__construct();
+ }
+
+ function __destruct() {
+ self::$crt->credentials_provider_release($this->release());
+ parent::__destruct();
+ }
+}