From c6983c9d95ecfb9542c3b19cc33bfb818dfde1b9 Mon Sep 17 00:00:00 2001 From: Martin Chudoba Date: Wed, 18 Dec 2024 12:51:04 +0100 Subject: [PATCH] [FIX] register new parameter --- src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php b/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php index 5c83b24b099..014a882038d 100644 --- a/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php +++ b/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php @@ -500,6 +500,7 @@ private function registerSwaggerConfiguration(ContainerBuilder $container, array $container->setParameter('api_platform.enable_swagger_ui', $config['enable_swagger_ui']); $container->setParameter('api_platform.enable_re_doc', $config['enable_re_doc']); $container->setParameter('api_platform.swagger.api_keys', $config['swagger']['api_keys']); + $container->setParameter('api_platform.swagger.persistAuthorization', $config['swagger']['persistAuthorization']); if ($config['openapi']['swagger_ui_extra_configuration'] && $config['swagger']['swagger_ui_extra_configuration']) { throw new RuntimeException('You can not set "swagger_ui_extra_configuration" twice - in "openapi" and "swagger" section.'); }