-
-
Notifications
You must be signed in to change notification settings - Fork 939
fix(symfony): do not load docs routes if docs disabled #7448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 4.2
Are you sure you want to change the base?
fix(symfony): do not load docs routes if docs disabled #7448
Conversation
alexndlm
commented
Oct 8, 2025
| Q | A |
|---|---|
| Branch? | 4.2 |
| Tickets | |
| License | MIT |
| Doc PR |
src/Symfony/Routing/ApiLoader.php
Outdated
| { | ||
| $routeCollection->addCollection($this->fileLoader->load('docs.xml')); | ||
| if ($this->docsEnabled) { | ||
| $routeCollection->addCollection($this->fileLoader->load('docs.xml')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GromNaN should we also move our routes to php?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it need to be done also: symfony/symfony#60568
We should add a 2nd transformation class in https://github.com/GromNaN/symfony-config-xml-to-php
|
We did not do this on purpose a when using JSON-LD you sematically need to have the |
I'm sorry, but I don't think it's a good idea. I also refactored a little, please check. |
|
can you rebase, don't you have a way to disable the open api docs? can you explain a little bit more what you want to disable ? |
7ff2c24 to
3777747
Compare
|
Rebased. The main goal is not to have a |