Skip to content

Commit 8f4bc08

Browse files
authored
fix(symfony): disable Swagger UI and ReDoc when Swagger is off (#7586)
1 parent 11ca7d3 commit 8f4bc08

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,9 @@ private function registerSwaggerConfiguration(ContainerBuilder $container, array
587587
}
588588

589589
if (!$config['enable_swagger']) {
590+
$container->setParameter('api_platform.enable_swagger_ui', false);
591+
$container->setParameter('api_platform.enable_re_doc', false);
592+
590593
return;
591594
}
592595

0 commit comments

Comments
 (0)