Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Config] Removed env var support with cannotBeEmpty() #31678

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
Jun 8, 2019
Merged

[Config] Removed env var support with cannotBeEmpty() #31678

merged 1 commit into from
Jun 8, 2019

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented May 29, 2019

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

See #28858

@nicolas-grekas
Copy link
Member

A test case is failing.

@@ -22,7 +22,7 @@
},
"require-dev": {
"symfony/yaml": "^4.4|^5.0",
"symfony/config": "^4.4|^5.0",
"symfony/config": "^5.0",
Copy link
Member

Choose a reason for hiding this comment

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

Is there a way not doing this? We'd better resist these when possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure how to detect Config 5.0 :/

then again .. it's nice to enforce the same behavior for everyone on DI 5.0 no?

Copy link
Member

Choose a reason for hiding this comment

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

I would try to try harder here: shouldn't the test case be moved to the config component?
This doesn't look legit to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

shouldn't the test case be moved to the config component?

i favored a di+config integration test, instead of a config unit test. Integration test have to deal with low/high deps either way. It now covers the deps=high case, assuming the legacy test is covered on lower branches still.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agree 4.4|5.0 is the better constraint, which is conceptually the same behavior already but allows users to opt for deprecations vs. exceptions basically.

@nicolas-grekas
Copy link
Member

Thank you @ro0NL.

@nicolas-grekas nicolas-grekas merged commit ec27d74 into symfony:master Jun 8, 2019
nicolas-grekas added a commit that referenced this pull request Jun 8, 2019
…o0NL)

This PR was merged into the 5.0-dev branch.

Discussion
----------

[Config] Removed env var support with cannotBeEmpty()

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

See #28858

Commits
-------

ec27d74 [Config] Removed env var support with cannotBeEmpty()
@ro0NL ro0NL deleted the config branch October 5, 2019 10:09
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.

4 participants