Files
orico-official-website/extend/filesystem/driver/Qiniu.php
2025-07-24 18:03:41 +08:00

20 lines
442 B
PHP

<?php
namespace filesystem\driver;
use League\Flysystem\FilesystemAdapter;
use Overtrue\Flysystem\Qiniu\QiniuAdapter;
class Qiniu extends \think\filesystem\Driver
{
protected function createAdapter(): FilesystemAdapter
{
return new QiniuAdapter(
$this->config['access_key'],
$this->config['secret_key'],
$this->config['bucket'],
$this->config['base_url'],
);
}
}