feat: ajout d'une nouvelle infrastructure de scraping avec des scrapers pour HTML, HTML avancé et JavaScript, ainsi qu'une factory pour gérer leur création et leur sélection. Mise à jour des gestionnaires de commandes pour intégrer cette nouvelle architecture et améliorer la gestion des erreurs lors du scraping des chapitres.

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-07-08 15:30:22 +02:00
parent cbb62989d4
commit b456f9304d
10 changed files with 1244 additions and 36 deletions

View File

@@ -93,6 +93,29 @@ services:
arguments:
$scraperFactory: '@App\Service\Scraper\ScraperFactory'
# New Scrapers Factory for Domain Layer
App\Domain\Scraping\Infrastructure\Service\ScraperFactory:
arguments:
$projectDir: '%kernel.project_dir%'
# Scraper Factory Interface alias
App\Domain\Scraping\Domain\Contract\Service\ScraperFactoryInterface:
alias: App\Domain\Scraping\Infrastructure\Service\ScraperFactory
# Test Scraper Configuration Handler
App\Domain\Scraping\Application\CommandHandler\TestScraperConfigurationHandler: ~
# JavaScript Scraper
App\Domain\Scraping\Infrastructure\Service\Scraper\JavaScriptScraper:
arguments:
$projectDir: '%kernel.project_dir%'
# Advanced HTML Scraper
App\Domain\Scraping\Infrastructure\Service\Scraper\AdvancedHtmlScraper: ~
# Scrape Chapter Handler
App\Domain\Scraping\Application\CommandHandler\ScrapeChapterHandler: ~
App\Domain\Scraping\Infrastructure\CommandHandler\SymfonyScrapeChapterHandler:
tags:
- { name: messenger.message_handler, bus: command.bus }