Files
Mangarr/src/Domain/Scraping/Infrastructure/CommandHandler/SymfonyScrapeChapterHandler.php
ext.jeremy.guillot@maxicoffee.domains 879b8fa2dc feat: endpoint FetchMangaChapters et tests
2025-02-11 18:00:49 +01:00

22 lines
527 B
PHP

<?php
namespace App\Domain\Scraping\Infrastructure\CommandHandler;
use App\Domain\Scraping\Application\Command\ScrapeChapter;
use App\Domain\Scraping\Application\CommandHandler\ScrapeChapterHandler;
use Symfony\Component\Messenger\Attribute\AsMessageHandler;
#[AsMessageHandler]
class SymfonyScrapeChapterHandler
{
public function __construct(
private ScrapeChapterHandler $handler
) {
}
public function __invoke(ScrapeChapter $command): void
{
$this->handler->handle($command);
}
}