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

[Runtime] Fix --env and --no-debug with dotenv_overload#44997

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

Conversation

@fancyweb
Copy link
Contributor

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

With thedotenv_overload option enabled, commands--no-debug and--env=prod options are not honored.

@fancywebfancywebforce-pushed theruntime/dotenv-overload-cmd branch 2 times, most recently fromfb41341 to97a5714CompareJanuary 12, 2022 15:25
@fancywebfancywebforce-pushed theruntime/dotenv-overload-cmd branch from97a5714 to0afd743CompareJanuary 26, 2022 17:31
@fancywebfancywebforce-pushed theruntime/dotenv-overload-cmd branch from0afd743 to0460f81CompareJanuary 26, 2022 17:32
@nicolas-grekas
Copy link
Member

Thank you@fancyweb.

@nicolas-grekasnicolas-grekas merged commit5bb11d5 intosymfony:5.4Jan 26, 2022
@fancywebfancyweb deleted the runtime/dotenv-overload-cmd branchJanuary 26, 2022 17:34
This was referencedJan 28, 2022
nicolas-grekas added a commit that referenced this pull requestFeb 15, 2022
This PR was merged into the 5.4 branch.Discussion----------[Runtime] Fix dotenv_overload with commands| Q             | A| ------------- | ---| Branch?       | 5.4| Bug fix?      | yes| New feature?  | no| Deprecations? | -| Tickets       | -| License       | MIT| Doc PR        | -Fixes bugs introduced in#44997.For example, if `$_SERVER['APP_ENV'] = 'foo';` exists and with `APP_ENV=prod` in `.env`, any command will throw `Cannot use "--env" or "-e" when the...` because `foo` is considered as the input env.Determining the input env and debug from `$_SERVER` is wrong because when the `--no-debug` and `--env` are not used, we actually consider the existing env and debug as the input end and debug. We need to know and use the real input env and debug.Commits-------4075269 [Runtime] Fix dotenv_overload with commands
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@GromNaNGromNaNGromNaN left review comments

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

5 participants

@fancyweb@nicolas-grekas@GromNaN@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp