diff options
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.php | 23 |
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(); + } +} |