src/PHPDish/Component/Media/Manager/FileManager.php
public function download(FileInterface $file, $streaming = true)
    {
        if ($streaming) {
            $this->assertStreamingSupport(); //不支持流式读写抛出异常
            $body = $this->filesystem->createStream($file->getKey());
        } else {
            $body = $this->filesystem->read($file->getKey());
        }
        $file->setContent($body);
    }
public function download(FileInterface $file, $streaming = true)
    {
        if ($streaming) {
            $this->assertStreamingSupport(); //不支持流式读写抛出异常
            $body = $this->filesystem->createStream($file->getKey());
        } else {
            $body = $this->filesystem->read($file->getKey());
        }
        $file->setContent($body);
    }
{@inheritdoc}