diff --git a/.idea/php.xml b/.idea/php.xml index 7e5d55a..7d11e4f 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -1,4 +1,20 @@ + + + + + + + + + + \ No newline at end of file diff --git a/Source/API/script/Config/ConnectClass.php b/Source/API/script/Config/ConnectClass.php index ad054dc..41f2ea5 100644 --- a/Source/API/script/Config/ConnectClass.php +++ b/Source/API/script/Config/ConnectClass.php @@ -21,9 +21,9 @@ class ConnectClass{ function connect(): int|Connection { try { - echo "OKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK"; + echo $this->dsn." ".$this->login." ".$this->password; $connection = new Connection($this->dsn,$this->login,$this->password); - + echo "OKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK"; }catch (PDOException){ throw new PDOException(); } diff --git a/Source/API/script/Gateway/GatewayForm.php b/Source/API/script/Gateway/GatewayForm.php index def3f1c..d2c6a55 100644 --- a/Source/API/script/Gateway/GatewayForm.php +++ b/Source/API/script/Gateway/GatewayForm.php @@ -14,8 +14,8 @@ class GatewayForm public function __construct() { try{ - echo "ici???"; $this->connection = (new ConnectClass)->connect(); + echo "ici???"; }catch(PDOException){ throw new PDOException(); }