refactor(manga): Chapter entité DDD de Manga + AggregateRoot
- Ajoute AggregateRoot dans Shared (domain events + pull pattern) - Manga extends AggregateRoot, devient vrai aggregate root DDD - Chapter passe de readonly à entité mutable avec MangaId VO - Manga expose les méthodes domaine pour toute mutation de chapitre : addChapter, updateChapterTitle/Volume/Pages, hideChapter, removeChapterPages - Supprime saveChapter/updateChapter/deleteChapter de MangaRepositoryInterface - save(Manga) gère désormais la persistance des chapitres via pull pattern - Tous les handlers/listeners passent par l'agrégat (plus d'accès direct) - phparkitect autorise AggregateRoot dans les couches Domain Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a4b3d8a5f1
commit
2c051351a8
@@ -23,6 +23,7 @@ return static function (Config $config): void {
|
||||
'Symfony\Component\HttpKernel\Exception',
|
||||
'Throwable',
|
||||
'InvalidArgumentException',
|
||||
'App\Domain\Shared\Domain\Model\AggregateRoot',
|
||||
];
|
||||
|
||||
// Dépendances externes autorisées
|
||||
|
||||
Reference in New Issue
Block a user