From b981ce64900e6181f7f286b50803e042ea484250 Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Thu, 2 Mar 2023 11:32:54 +0100 Subject: [PATCH] TEMP : try to check if the index.php can read GateWays --- Source/API/script/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/API/script/index.php b/Source/API/script/index.php index 0ec8d0c..e8dd1f5 100644 --- a/Source/API/script/index.php +++ b/Source/API/script/index.php @@ -24,7 +24,7 @@ $app->addRoutingMiddleware(); * @param bool $logErrors -> Parameter is passed to the default ErrorHandler * @param bool $logErrorDetails -> Display error details in error log */ -$errorMiddleware = $app->addErrorMiddleware(true, true, false); +$errorMiddleware = $app->addErrorMiddleware(true, true, true); /** * Add a route for the API @@ -40,6 +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)); if (method_exists($gateway, $method)) { $ok = true; $response->getBody()->write(json_encode((new $gateway)->$method($parameters)));