Skip to content

Commit

Permalink
Merge pull request #5 from sinbonders/patch-2
Browse files Browse the repository at this point in the history
Updating README
  • Loading branch information
abacaphiliac authored Jun 30, 2016
2 parents e82e672 + 6e54302 commit bc1e317
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# zend-phpdotenv
ZF2 Module that loads [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv).

Module attaches a listener to EVENT_MERGE_CONFIG on ModuleManager's EventManager, before the ConfigListener merges the config.
Module attaches a listener to `EVENT_LOAD_MODULE` on ModuleManager's EventManager to load environment variables while the module is loaded.

# Installation
```bash
Expand All @@ -14,8 +14,8 @@ composer require abacaphiliac/zend-phpdotenv

# Usage
1. Add `Abacaphiliac\ZendPhpDotEnv` to your ZF2 application module config.
1. Create a `.env` file in the root directory of your ZF2 application.
1. Purge your ZF2 application's config cache (the environment variables will be added when the config is merged).
2. Create a `.env` file in the root directory of your ZF2 application.
3. Use `getenv()` anywhere in your code (or config) to pull environment variables.

# Dependencies
php >=5.3.9 and ZF >=2.3
Expand Down

0 comments on commit bc1e317

Please sign in to comment.