提交的内容

This commit is contained in:
2025-05-12 15:45:02 +08:00
parent 629c4750da
commit b48c692775
3043 changed files with 34732 additions and 60810 deletions

0
vendor/aliyuncs/oss-sdk-php/src/OSS/Credentials/Credentials.php vendored Executable file → Normal file
View File

View File

View File

@ -0,0 +1,20 @@
<?php
namespace OSS\Credentials;
use OSS\Core\OssException;
class EnvironmentVariableCredentialsProvider implements CredentialsProvider
{
/**
* @return Credentials
* @throws OssException
*/
public function getCredentials()
{
$ak= getenv('OSS_ACCESS_KEY_ID');
$sk = getenv('OSS_ACCESS_KEY_SECRET');
$token = getenv('OSS_SESSION_TOKEN');
return new Credentials($ak, $sk, $token);
}
}

View File