-
-
Notifications
You must be signed in to change notification settings - Fork 834
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
feat: Add ability to configure UI through configuration #2251
Conversation
626522c
to
f5c5e99
Compare
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.
This configuration option should more generic to potentially allow more options in the future, this also aligns this new configuration option with the DumpCommand --html-config
option and also let's it serve as a potential way to customize the default value for --html-config
.
ea83245
to
c369078
Compare
c369078
to
9e84ef5
Compare
9e84ef5
to
2333a54
Compare
I've rebased the PR since there were conflicts. |
Thank you! I was planning on doing it myself but I was not able to find the time for it yet :) I will try and have a look at everything later today if my time allows it |
Thank you @HypeMC :) |
| Q | A | |---------------|---------------------------------------------------------------------------------------------------------------------------| | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - Currently the `SwaggerUiController` doesn't respect the `assets_mode` configuration added in #2251. ```yaml nelmio_api_doc: html_config: assets_mode: cdn ``` As far as I can tell, there's no reason for the default any more as it can be set through the configuration and overridden in the `DumpCommand` command using the `html-config` option.
Adds the ability to configure the UI through configuration: