From 9506eb45ba000bb76add473c22c248240f1f6255 Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Thu, 2 Mar 2023 11:34:38 +0100 Subject: [PATCH] TEMP : try to check if the index.php can read Gateways, use new $gateway --- Source/API/script/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/API/script/index.php b/Source/API/script/index.php index e8dd1f5..651d27f 100644 --- a/Source/API/script/index.php +++ b/Source/API/script/index.php @@ -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)));