Files
animethemes-server/app/Actions/Http/StreamAction.php
T
2025-07-24 01:22:29 -03:00

20 lines
455 B
PHP

<?php
declare(strict_types=1);
namespace App\Actions\Http;
use App\Contracts\Models\Streamable;
use App\Contracts\Storage\InteractsWithDisk;
use Symfony\Component\HttpFoundation\Response;
abstract class StreamAction implements InteractsWithDisk
{
public function __construct(protected readonly Streamable $streamable) {}
/**
* Stream the resource.
*/
abstract public function stream(string $disposition = 'inline'): Response;
}