-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
[4.1] Support multiple file names and disabling short circuit file loading #394
Conversation
Oh, I should also mention, if more control over the exact paths tried is needed (such as only looking for some files in some directories, and files of a different name in others), instead of using the static |
We now support getting the raw file contents too, before they are parsed and loaded. |
I'll test it a bit later :) |
Pushed another change. Don't want to make |
This code is currently available as: "require": {
"vlucas/phpdotenv": "^4.1@dev"
}, |
I'm going to give some more time for feedback before I release 4.1.0. |
It is now possible to specify multiple file names, as well as multiple directories to search. By default, we'll stop looking for files as soon as we find one, like we did when there were multiple directories. To disable this behaviour, and load all files in order, one can disable "short circuit" file loading with a new parameter.
For example:
Closes #393.