<?php

namespace App\Download\Framework\Controller;

use App\Download\Action\Input\DownloadMediaInput;
use App\Download\Framework\Repository\DownloadRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Mercure\HubInterface;
use Symfony\Component\Mercure\Update;
use Symfony\Component\Messenger\MessageBusInterface;
use Symfony\Component\Routing\Attribute\Route;

class WebController extends AbstractController
{
    public function __construct(
        private DownloadRepository $downloadRepository,
        private MessageBusInterface $bus,
        private readonly HubInterface $hub,
    ) {}

    #[Route('/downloads', name: 'app_downloads', methods: ['GET'])]
    public function download(): Response {
        return $this->render('downloads/index.html.twig');
    }
}
