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)));