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] Support array notation#25942

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

Closed
sanpii wants to merge1 commit intosymfony:masterfromsanpii:dotenv-array
Closed

[dotenv] Support array notation#25942

sanpii wants to merge1 commit intosymfony:masterfromsanpii:dotenv-array

Conversation

@sanpii
Copy link
Contributor

@sanpiisanpii commentedJan 27, 2018
edited
Loading

QA
Branch?master
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PRsymfony/symfony-docs#9150

In addition ofFOO[bar]=BAR notation, supported by bash, this PR adds support for empty keys. I don’t know if it’s a good idea.

@nicolas-grekas
Copy link
Member

The dotenv file is meant as a fallback when real env vars cannot be used.
Because it's a fallback, it should not allow more features than real env vars allow.
Here, defining a real bash env var as an array is not compatible with e.g. populating the$_SERVER array.
For this reason, this PR is out of scope for the component.

Instead, you should maybe use env processors, seehttps://symfony.com/blog/new-in-symfony-3-4-advanced-environment-variables (3.4 & up) and#25627 (4.1 & up)

@sanpii
Copy link
ContributorAuthor

@nicolas-grekas Ok, thank you.

@sanpiisanpii closed thisJan 29, 2018
@nicolas-grekasnicolas-grekas added this to the4.1 milestoneJan 29, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

4 participants

@sanpii@nicolas-grekas@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp