Skip to content

Document the DotEnv::overload() method #9568

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 4 commits into from
Sep 4, 2018
Merged

Conversation

fmata
Copy link
Contributor

@fmata fmata commented Apr 8, 2018

I'm not sure how to update the doc according my PR symfony/symfony#26859 which is pending review but feel free to comment if I did a mistake. Thank you.

fabpot added a commit to symfony/symfony that referenced this pull request Sep 4, 2018
This PR was merged into the 4.2-dev branch.

Discussion
----------

[Dotenv] add a flag to allow env vars override

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

I choose to use a new parameter in the constructor instead of `populate()` to not add boilerplate code to them who want allow overriding in their current setup. It's just a parameter to add in `Dotenv` creation instead of change or customize the loading of different .env files.

I targeted 4.1 despite the feature freeze because it's a small change but if you don't agree I can change to 4.2.

~~If you accept this PR I will do the doc PR then.~~
doc ready

Commits
-------

228b220 [Dotenv] add Dotenv::overload() to allow env vars override
@fmata
Copy link
Contributor Author

fmata commented Sep 4, 2018

Code merged, doc ready.

@javiereguiluz javiereguiluz added Status: Reviewed and removed Status: Needs Review Waiting Code Merge Docs for features pending to be merged labels Sep 4, 2018
@javiereguiluz javiereguiluz changed the title [WCM] Update dotenv.rst Document the DotEnv::overload() method Sep 4, 2018
@javiereguiluz
Copy link
Member

@fmata thanks a lot for this contribution! Another lovely addition to Symfony 4.2.

I reworded the doc a bit to not mention populate() because we never mention that method in the docs. Thanks!

@javiereguiluz javiereguiluz merged commit 38e4f08 into symfony:master Sep 4, 2018
javiereguiluz added a commit that referenced this pull request Sep 4, 2018
…luz)

This PR was merged into the master branch.

Discussion
----------

Document the DotEnv::overload() method

I'm not sure how to update the doc according my PR symfony/symfony#26859 which is pending review but feel free to comment if I did a mistake. Thank you.

Commits
-------

38e4f08 Reword
f8a3c0d Update dotenv.rst
6325759 Update dotenv.rst
c8ad296 Update dotenv.rst
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