- Refactor MangaScraperService (not used everywhere now)
- Added JavascriptScraper.php
- Added alternatives slugs in Manga.php
- Improvement in manga edit form
This commit is contained in:
Jérémy Guillot
2024-07-21 19:08:46 +02:00
parent ff59aa5d77
commit fafff5014c
21 changed files with 1180 additions and 28 deletions

View File

@@ -76,3 +76,29 @@ services:
App\Service\MangadexProvider:
arguments:
$client: '@App\Client\MangadexClient'
# Scrapers
App\Service\Scraper\HtmlScraper:
arguments:
$projectDir: '%kernel.project_dir%'
tags: [ 'app.scraper' ]
App\Service\Scraper\JavascriptScraper:
arguments:
$projectDir: '%kernel.project_dir%'
tags: [ 'app.scraper' ]
App\Service\Scraper\MangadexScraper:
arguments:
$projectDir: '%kernel.project_dir%'
tags: [ 'app.scraper' ]
# Scraper Factory
App\Service\Scraper\ScraperFactory:
arguments:
$scrapers: !tagged_iterator app.scraper
# Manga Scraper Service
App\Service\Scraper\MangaScraperService:
arguments:
$scraperFactory: '@App\Service\Scraper\ScraperFactory'