- Portage des fonctionnalités de la branche main
- Ajout de node et npm dans la Dockerfile - Ajout des Factories et Fixtures - Ajout de npm-install dans Make install
This commit is contained in:
15
src/Service/MangaProviderFactory.php
Normal file
15
src/Service/MangaProviderFactory.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Service;
|
||||
|
||||
class MangaProviderFactory
|
||||
{
|
||||
public static function create($providerName): MangaProviderInterface
|
||||
{
|
||||
return match ($providerName) {
|
||||
'LelScans' => new LelScansProviderService(),
|
||||
'AutreManga' => new AutreMangaProviderService(),
|
||||
default => throw new \Exception("Provider {$providerName} non supporté."),
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user