-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] Dont register env parameter resource #24067
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
Conversation
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.
once fabbot happy :) Tend to agree we should deprecate the class
have some patience :) done. |
Deprecation can be done in 3.4, let me know if you want a PR. |
I suggest deprecating EnvParametersResource in 3.4, in favor of env placeholders. The implementation of this resource is tied to the old logic reading magic env variables. It is not a generic resource for env variable usage anyway, so using it in other contexts that HttpKernel would be weird. |
Basically it's a resource to verify freshness of any env var, tied to a prefix. i think it fits config component, it's generic enough for that imo, but im not sure it be useful to anyone =/ |
This PR was squashed before being merged into the 3.4 branch (closes #24068). Discussion ---------- [HttpKernel] Deprecate EnvParametersResource | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> See #24067 Commits ------- 76ea6df [HttpKernel] Deprecate EnvParametersResource
#24068 is now merged up to master, can you rebase and remove the deprecated class meanwhile please? |
Thank you @ro0NL. |
This PR was merged into the 4.0-dev branch. Discussion ---------- [HttpKernel] Dont register env parameter resource | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> Think this was forgotten in #22886 Not sure about `EnvParametersResource` in the http-kernel component. Core doesnt use it anymore, so we could deprecate it (and while doing so move it to config component to keep the feature if wanted). Kept as is for now. Commits ------- 36d2a45 [HttpKernel] Dont register env parameter resource
Think this was forgotten in #22886
Not sure about
EnvParametersResource
in the http-kernel component. Core doesnt use it anymore, so we could deprecate it (and while doing so move it to config component to keep the feature if wanted). Kept as is for now.