Files
Mangarr/src/Twig/Components/DownloadChapter.php
ext.jeremy.guillot@maxicoffee.domains c55cd62ec7 fix: phpcs-fixer
2025-02-05 21:32:04 +01:00

34 lines
833 B
PHP

<?php
namespace App\Twig\Components;
use App\Repository\ChapterRepository;
use App\Repository\MangaRepository;
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
use Symfony\UX\LiveComponent\DefaultActionTrait;
#[AsLiveComponent]
final class DownloadChapter
{
use DefaultActionTrait;
public ?string $mangaSlug = '';
public float $chapter;
public function __construct()
{
}
public function downloadChapter(MangaRepository $mangaRepository, ChapterRepository $chapterRepository): int
{
// $mangaSlug = $this->mangaSlug;
// $chapter = $this->chapter;
// $manga = $mangaRepository->findOneBy(['slug' => $mangaSlug]);
// $chapter = $chapterRepository->findOneBy(['manga' => $manga, 'number' => $chapter]);
return 0;
}
}