20 lines
442 B
PHP
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'],
|
|
);
|
|
}
|
|
|
|
}
|