-
-
Notifications
You must be signed in to change notification settings - Fork 840
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(config): allow to disable api platform support #2401
base: master
Are you sure you want to change the base?
feat(config): allow to disable api platform support #2401
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2401 +/- ##
==========================================
+ Coverage 90.09% 90.10% +0.01%
==========================================
Files 94 94
Lines 3059 3063 +4
==========================================
+ Hits 2756 2760 +4
Misses 303 303 ☔ View full report in Codecov by Sentry. |
@@ -29,6 +29,10 @@ public function getConfigTreeBuilder(): TreeBuilder | |||
->info('If true, `groups` passed to @Model annotations will be used to limit validation constraints') | |||
->defaultFalse() | |||
->end() | |||
->booleanNode('api_platform_support') |
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.
->booleanNode('api_platform_support') | |
->booleanNode('api_platform') |
@@ -29,6 +29,10 @@ public function getConfigTreeBuilder(): TreeBuilder | |||
->info('If true, `groups` passed to @Model annotations will be used to limit validation constraints') | |||
->defaultFalse() | |||
->end() | |||
->booleanNode('api_platform_support') | |||
->info('If false, the service declaration that support ApiPlatform will not be loaded even if ApiPlatform is detected in your installation') |
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.
->info('If false, the service declaration that support ApiPlatform will not be loaded even if ApiPlatform is detected in your installation') | |
->info('Enable API Platform integration'') |
Description
Suggestion: allow to disable ApiPlatform support. In fact, you may want to document a part of your application (if you have endpoints that are not served by ApiPlatform) by NelmioDocBundle. If this configuration is loaded, the ApiPlatform endpoints are added in all areas of the documentation.
Please let me know what you think of this situation, or if there is any other way to do this.
What type of PR is this? (check all applicable)
Checklist
docs/
)CHANGELOG.md
)