Skip to content

Commit

Permalink
Upgrade oscarotero/env to ^2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed Jun 11, 2020
1 parent e6f0afc commit 374edf9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"php": ">=7.1",
"composer/installers": "^1.8",
"vlucas/phpdotenv": "^4.1.5",
"oscarotero/env": "^1.2.0",
"oscarotero/env": "^2.0",
"roots/bedrock-autoloader": "^1.0",
"roots/wordpress": "5.4.1",
"roots/wp-config": "1.0.0",
Expand Down
30 changes: 19 additions & 11 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions config/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/

use Roots\WPConfig\Config;
use function Env\env;

/**
* Directory containing all of the site's files
Expand All @@ -24,11 +25,6 @@
*/
$webroot_dir = $root_dir . '/web';

/**
* Expose global env() function from oscarotero/env
*/
Env::init();

/**
* Use Dotenv to set required environment variables and load .env file in root
*/
Expand Down

0 comments on commit 374edf9

Please sign in to comment.