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:
parent
cbb62989d4
commit
b456f9304d
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user