Skip to content

[HttpKernel] Deprecate EnvParametersResource #24068

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

Closed
wants to merge 2 commits into from
Closed

[HttpKernel] Deprecate EnvParametersResource #24068

wants to merge 2 commits into from

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented Sep 1, 2017

Q A
Branch? 3.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets #...
License MIT
Doc PR symfony/symfony-docs#...

See #24067

@nicolas-grekas
Copy link
Member

It should be just deprecated, the implementation doesn't fit any generic use case - and we now have real env vars.

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Sep 1, 2017
@@ -13,6 +13,7 @@

use Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator;
use Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper;
use Symfony\Component\Config\Resource\EnvParametersResource;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert ordering changes

@@ -13,6 +13,7 @@

use Symfony\Bridge\ProxyManager\LazyProxy\Instantiator\RuntimeInstantiator;
use Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper;
use Symfony\Component\Config\Resource\EnvParametersResource;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert ordering changes

@ro0NL
Copy link
Contributor Author

ro0NL commented Sep 1, 2017

Do you propose to soft deprecate it in 3.4? Core would still use it.

@nicolas-grekas
Copy link
Member

Sounds good yes

@ro0NL
Copy link
Contributor Author

ro0NL commented Sep 1, 2017

Done.

@ro0NL ro0NL changed the title [HttpKernel] Move EnvParametersResource to config component [HttpKernel] Deprecate EnvParametersResource Sep 1, 2017
@chalasr
Copy link
Member

chalasr commented Sep 1, 2017

Can you add an entry in UPGRADE-4.0 about the removal?

@ro0NL
Copy link
Contributor Author

ro0NL commented Sep 1, 2017

If this goes first, i can do that in #24067. Along with the actual removal :)

edit: or do we care about the state of UPGRADE-4.0 in 3.4?

@chalasr
Copy link
Member

chalasr commented Sep 1, 2017

I'd say no, just to not forgot about it.

@ro0NL
Copy link
Contributor Author

ro0NL commented Sep 1, 2017

Which raises the question; do we need that file in 3.4 anyway? If you should follow the master version

@fabpot
Copy link
Member

fabpot commented Sep 1, 2017

I would update the 4.0 UPGRADE file in this PR, that's what we've been doing for years :)

@chalasr
Copy link
Member

chalasr commented Sep 1, 2017

@ro0NL If the author doesn't do the removing PR (or if we remove while merging up) it's good to have this file already up to date.

@ro0NL
Copy link
Contributor Author

ro0NL commented Sep 1, 2017

it's good to have this file already up to date.

Yeah but without the actual code change it's technically not true (yet) :) I see the POV, and as long as lowest branch is leading there's no real issue. Just wanted to point out it can be fragile, and maintaining a single version of truth might make sense :)

@fabpot it already went wrong :) https://www.diffchecker.com/vQeHcX37

basically the same file is out of sync between branches.

Updated anyway :)

@nicolas-grekas
Copy link
Member

Thank you @ro0NL.

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
@ro0NL ro0NL deleted the di/env-resource branch September 9, 2017 08:32
This was referenced Oct 18, 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