8000 [HttpKernel] Dont register env parameter resource by ro0NL · Pull Request #24067 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[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

Merged
merged 1 commit into from
Sep 5, 2017
Merged

[HttpKernel] Dont register env parameter resource #24067

merged 1 commit into from
Sep 5, 2017

Conversation

ro0NL
Copy link
Contributor
@ro0NL ro0NL commented Sep 1, 2017
Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #...
License MIT
Doc PR symfony/symfony-docs#...

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.

Copy link
Member
@chalasr chalasr left a 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

@ro0NL
Copy link
Contributor Author
ro0NL commented Sep 1, 2017

have some patience :) done.

@ro0NL
Copy link
Contributor Author
ro0NL commented Sep 1, 2017

Deprecation can be done in 3.4, let me know if you want a PR.

8000

@stof
Copy link
Member
stof commented Sep 1, 2017

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.

@ro0NL
Copy link
Contributor Author
ro0NL commented Sep 1, 2017

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 =/

@chalasr chalasr added this to the 4.0 milestone Sep 2, 2017
nicolas-grekas added a commit that referenced this pull request Sep 3, 2017
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
@nicolas-grekas
Copy link
Member

#24068 is now merged up to master, can you rebase and remove the deprecated class meanwhile please?

@nicolas-grekas
Copy link
Member

Thank you @ro0NL.

@nicolas-grekas nicolas-grekas merged commit 36d2a45 into symfony:master Sep 5, 2017
nicolas-grekas added a commit that referenced this pull request Sep 5, 2017
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
@ro0NL ro0NL deleted the di/sf-envs branch September 5, 2017 07:47
@fabpot fabpot mentioned this pull request Oct 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0