feat: analyse import + all tests fixed

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-10-15 16:14:15 +02:00
parent fbe9619224
commit 3170a7c60e
74 changed files with 4318 additions and 183 deletions

View File

@@ -34,6 +34,8 @@ framework:
'App\Domain\Scraping\Domain\Event\ChapterScrapingFailed': events
'App\Domain\Manga\Domain\Event\ChapterReadyForScraping': events
'App\Domain\Manga\Domain\Event\MangaCreated': events
'App\Domain\Shared\Domain\Event\ChapterImported': events
'App\Domain\Shared\Domain\Event\VolumeImported': events
# Legacy messages (à garder si nécessaire)
'App\Message\DownloadChapter': commands

View File

@@ -126,7 +126,13 @@ services:
tags:
- { name: messenger.message_handler, bus: command.bus }
App\Domain\Scraping\Infrastructure\Service\CbzGenerator:
App\Domain\Scraping\Infrastructure\Service\CbzGenerator: ~
# Shared Manga Path/File Manager
App\Domain\Shared\Domain\Contract\MangaPathManagerInterface:
alias: App\Domain\Shared\Infrastructure\Service\MangaFileManager
App\Domain\Shared\Infrastructure\Service\MangaFileManager:
arguments:
$projectDir: '%kernel.project_dir%'
@@ -158,6 +164,31 @@ services:
App\Domain\Shared\Domain\Contract\EventDispatcherInterface:
alias: App\Domain\Shared\Infrastructure\Messenger\SymfonyMessengerEventDispatcher
# Shared Domain Services Configuration
App\Domain\Shared\Domain\Contract\FileUploadInterface:
alias: App\Domain\Shared\Infrastructure\Service\SymfonyFileUpload
App\Domain\Shared\Infrastructure\Service\SymfonyFileUpload:
arguments:
$uploadsDirectory: '%kernel.project_dir%/public/tmp'
App\Domain\Shared\Domain\Contract\NotificationInterface:
alias: App\Domain\Shared\Infrastructure\Service\SymfonyNotification
App\Domain\Manga\Infrastructure\CommandHandler\SymfonyFetchMangaChaptersHandler:
tags:
- { name: messenger.message_handler, bus: command.bus }
# Import Domain Services
App\Domain\Import\Infrastructure\Service\FilenameAnalyzer: ~
App\Domain\Import\Domain\Service\FilenameAnalyzerInterface:
alias: App\Domain\Import\Infrastructure\Service\FilenameAnalyzer
# Import Domain Query/Command Handlers
App\Domain\Import\Application\QueryHandler\AnalyzeFilenameQueryHandler: ~
App\Domain\Import\Application\CommandHandler\ImportFileCommandHandler: ~
# Import Domain API Platform Services
App\Domain\Import\Infrastructure\ApiPlatform\State\Processor\AnalyzeFilenameStateProcessor: ~
App\Domain\Import\Infrastructure\ApiPlatform\State\Processor\ImportFileStateProcessor: ~