diff --git a/modules/openapi-generator/src/main/resources/php-slim4-server/register_routes.mustache b/modules/openapi-generator/src/main/resources/php-slim4-server/register_routes.mustache index abaf5d09f4ba..98d660c6c01b 100644 --- a/modules/openapi-generator/src/main/resources/php-slim4-server/register_routes.mustache +++ b/modules/openapi-generator/src/main/resources/php-slim4-server/register_routes.mustache @@ -206,19 +206,19 @@ class RegisterRoutes 'header' => $authMethod['keyParamName'], 'parameter' => null, 'cookie' => null, - ] + ]; } else if ($authMethod['isKeyInQuery']) { $authenticatorConfig = [ 'header' => null, 'parameter' => $authMethod['keyParamName'], 'cookie' => null, - ] + ]; } else if ($authMethod['isKeyInCookie']) { $authenticatorConfig = [ 'header' => null, 'parameter' => null, 'cookie' => $authMethod['keyParamName'], - ] + ]; } $route->add(new TokenAuthentication($authenticatorConfig)); }