TEMP : try to check if the index.php can read Gateways, use new $gateway
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent b981ce6490
commit 9506eb45ba

@ -40,7 +40,7 @@ $app->get('/', function (Request $request, Response $response) {
$listGateway = array("\\Gateway\\GatewayForm", "\\Gateway\\GatewayKeyword", "\\Gateway\\GatewayQuestion");
$ok = false;
foreach ($listGateway as $gateway){
echo implode(",",get_class_methods($gateway));
echo implode(",",get_class_methods((new $gateway)));
if (method_exists($gateway, $method)) {
$ok = true;
$response->getBody()->write(json_encode((new $gateway)->$method($parameters)));

Loading…
Cancel
Save