refactor: add AbstractProvider

This commit is contained in:
Maël Gangloff
2024-08-23 02:35:09 +02:00
parent adb67d2e24
commit b59c1c61dc
10 changed files with 95 additions and 67 deletions

View File

@@ -2,8 +2,8 @@
namespace App\Config;
use App\Config\Connector\GandiConnector;
use App\Config\Connector\OvhConnector;
use App\Config\Provider\GandiProvider;
use App\Config\Provider\OvhProvider;
enum ConnectorProvider: string
{
@@ -13,8 +13,8 @@ enum ConnectorProvider: string
public function getConnectorProvider(): string
{
return match ($this) {
ConnectorProvider::OVH => OvhConnector::class,
ConnectorProvider::GANDI => GandiConnector::class
ConnectorProvider::OVH => OvhProvider::class,
ConnectorProvider::GANDI => GandiProvider::class
};
}
}