summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-crt-php/src/AWS/CRT/Auth/CredentialsProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/aws/aws-crt-php/src/AWS/CRT/Auth/CredentialsProvider.php')
-rw-r--r--vendor/aws/aws-crt-php/src/AWS/CRT/Auth/CredentialsProvider.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/aws/aws-crt-php/src/AWS/CRT/Auth/CredentialsProvider.php b/vendor/aws/aws-crt-php/src/AWS/CRT/Auth/CredentialsProvider.php
new file mode 100644
index 0000000..e9d3588
--- /dev/null
+++ b/vendor/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();
+ }
+}