Skip to content
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

Initial v2.0 version (for really reals this time) #87

Merged
merged 2 commits into from
May 30, 2015
Merged

Initial v2.0 version (for really reals this time) #87

merged 2 commits into from
May 30, 2015

Conversation

vlucas
Copy link
Owner

@vlucas vlucas commented May 29, 2015

Changes made:

  • Moved everything under a proper PSR-4 Dotenv namespace with a constructor, so usage is now:
$dotenv = new Dotenv\Dotenv(__DIR__);
$dotenv->load();
  • Now loads immutable by default (will not overwrite existing ENV vars). You can use $dotenv->overload() to make them mutable
  • Now supports only shell-style variable syntax, and no other alternate loaders
  • Updated README file to match new sytnax, etc.
  • Kept same required assertions and others from the original v2 branch

```
source .env
```

Contributing

Choose a reason for hiding this comment

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

Shouldn't headline markup be consistent?

Copy link
Owner Author

Choose a reason for hiding this comment

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

It is consistent with the other headlines in the file. You can't do an h3 level heading without the hash in Markdown.

vlucas added a commit that referenced this pull request May 30, 2015
Initial v2.0 version (for really reals this time)
@vlucas vlucas merged commit 0c005e2 into master May 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants