Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Dotenv] Deprecate useage of "putenv"#31062

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:masterfromNyholm:putenv-deprecate
Apr 10, 2019

Conversation

@Nyholm
Copy link
Member

@NyholmNyholm commentedApr 10, 2019
edited
Loading

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?yes
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PRn/a

From discussions onsymfony/recipes#571, I think it is a good idea to make people opt-in to usingputenv.

In Symfony 5.0 we will just change the value of the constructor. As an alternative, we could decide we want to removeputenv in Symfony 5.0. If so, I would also deprecate$usePutenv=true.

MisatoTremor reacted with thumbs up emoji
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

(once comments are fixed)

@Nyholm
Copy link
MemberAuthor

Thank you for the reviews

@fabpot
Copy link
Member

Thank you@Nyholm.

@fabpotfabpot merged commit8e45fc0 intosymfony:masterApr 10, 2019
fabpot added a commit that referenced this pull requestApr 10, 2019
This PR was squashed before being merged into the 4.3-dev branch (closes#31062).Discussion----------[Dotenv] Deprecate useage of "putenv"| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        | n/aFrom discussions onsymfony/recipes#571, I think it is a good idea to make people opt-in to using `putenv`.In Symfony 5.0 we will just change the value of the constructor. As an alternative, we could decide we want to remove `putenv` in Symfony 5.0. If so, I would also deprecate `$usePutenv=true`.Commits-------8e45fc0 [Dotenv] Deprecate useage of \"putenv\"
@NyholmNyholm deleted the putenv-deprecate branchApril 10, 2019 20:05
@Nyholm
Copy link
MemberAuthor

Thank you for merging

nicolas-grekas added a commit that referenced this pull requestApr 11, 2019
This PR was merged into the 4.3-dev branch.Discussion----------[Dotenv] Improve Dotenv messages| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | no| Fixed tickets | no| License       | MIT| Doc PR        | noThis PR improves a little bit of some messages from#31062The first, passive sentences may be more suitable here because the value couldn't change by itself. It is changed by us - human.The second, if we use **The default value of $usePutenv" argument of "%s\'s constructor**, we have to pass `__CLASS__` as the second parameter of `sprintf` function instead of `__METHOD__`. So, I suggest using **The default value of $usePutenv" argument of "%s"**.Finally, the deprecation warning of `Dotenv::__construct()` is very long. Let's separate it into 2 pieces for readable reason.Commits-------e871a6a Improve Dotenv messages
@nicolas-grekasnicolas-grekas modified the milestones:next,4.3Apr 30, 2019
fabpot added a commit that referenced this pull requestMay 7, 2019
This PR was merged into the 4.3-dev branch.Discussion----------[Dotenv] Test do not use putenv| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |The related pull request is#31062.If the `$usePutenv` flag is set to `false`, `putenv` won't be executed. I just add a small test for this situation.Commits-------6d1a76e Test do not use putenv
@fabpotfabpot mentioned this pull requestMay 9, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

4 participants

@Nyholm@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp