mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireCloud.git
synced 2026-07-18 11:39:23 +08:00
* feat: download service serves responses directly now * refactor: make DownloadService stream directly * tweak: set up some real caching (default 10 days) * config: use app.aspirecloud.download.base * fix: move /download routes from web.php to api.php
13 lines
278 B
PHP
13 lines
278 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Contracts\Downloads;
|
|
|
|
use App\Enums\AssetType;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
|
|
interface Downloader
|
|
{
|
|
public function download(AssetType $type, string $slug, string $file, ?string $revision = null): Response;
|
|
}
|