namespace Overtrue\Flysystem\Qiniu\Plugins;
use League\Flysystem\Plugin\AbstractPlugin;
class FetchFile extends AbstractPlugin
{
public function getMethod()
{
return 'fetch';
}
public function handle($path, $url)
{
return $this->filesystem->getAdapter()->fetch($path, $url);
}
}
文档如下:
源码中是接收两个参数?