[php-slim4-server] fix php syntax error in RegisterRoutes class (missing semicolon) (#18863)

Co-authored-by: Tommy Seus <tommy.seus@tmy.email>
This commit is contained in:
Tommy Seus 2024-06-05 11:37:47 +02:00 committed by GitHub
parent 880df7a7a4
commit b7a4a47270
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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