mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
refactor: fix merge mistakes
This commit is contained in:
@@ -2,19 +2,22 @@
|
||||
|
||||
namespace App\Config;
|
||||
|
||||
use App\Config\Provider\GandiProvider;
|
||||
use App\Config\Provider\OvhProvider;
|
||||
use App\Service\Connector\GandiProvider;
|
||||
use App\Service\Connector\NamecheapConnector;
|
||||
use App\Service\Connector\OvhProvider;
|
||||
|
||||
enum ConnectorProvider: string
|
||||
{
|
||||
case OVH = 'ovh';
|
||||
case GANDI = 'gandi';
|
||||
case NAMECHEAP = 'namecheap';
|
||||
|
||||
public function getConnectorProvider(): string
|
||||
{
|
||||
return match ($this) {
|
||||
ConnectorProvider::OVH => OvhProvider::class,
|
||||
ConnectorProvider::GANDI => GandiProvider::class
|
||||
ConnectorProvider::GANDI => GandiProvider::class,
|
||||
ConnectorProvider::NAMECHEAP => NamecheapConnector::class,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user