Try to add echo to see where is the problem
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent 2a3755c38c
commit 57a229e307

@ -21,7 +21,7 @@ class ConnectClass{
function connect(): int|Connection
{
try {
echo "OKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK";
$connection = new Connection($this->dsn,$this->login,$this->password);
}catch (PDOException){

@ -14,8 +14,9 @@ class GatewayForm
public function __construct()
{
try{
echo "ici???";
$this->connection = (new ConnectClass)->connect();
}catch(PDOException $e){
}catch(PDOException){
throw new PDOException();
}
}

@ -46,7 +46,8 @@ $app->get('/', function (Request $request, Response $response) {
$ok = true;
$response->getBody()->write(json_encode((new $gateway)->$method($parameters)));
}
}catch (PDOException $e){
}catch (PDOException){
echo "ici?";
throw new PDOError($request);
}
}

Loading…
Cancel
Save