TEMP : put the test in the right part
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent 220bcd7a08
commit b97b659e3a

@ -37,14 +37,14 @@ try{
foreach ($listGateway as $gateway) // Pour chaque Gateway foreach ($listGateway as $gateway) // Pour chaque Gateway
{ {
if (method_exists($gateway, $method)) { if (method_exists($gateway, $method)) {
//$response->getBody()->write(print_r((new $gateway)->$method($parameters))); // Si oui, on appelle cette fonction $response->getBody()->write(print_r((new $gateway)->$method($parameters))); // Si oui, on appelle cette fonction
}
}
$temp = array('response' => "Rien", 'test' => "Test Ici"); $temp = array('response' => "Rien", 'test' => "Test Ici");
foreach ($temp as $key => $value) { foreach ($temp as $key => $value) {
echo $key,$value;
$response->getBody()->write($key,$value); $response->getBody()->write($key,$value);
} }
}
}
return $response; return $response;
//return $response->withHeader('Content-type', 'application/json'); //return $response->withHeader('Content-type', 'application/json');
}); });

Loading…
Cancel
Save