diff --git a/app/App.php b/app/App.php index 60391c2..5d60c73 100644 --- a/app/App.php +++ b/app/App.php @@ -1,6 +1,7 @@ =7.3", "composer/installers": "^1.4", "johnpbloch/wordpress": "5.*", - "oscarotero/env": "^1.1.0", + "oscarotero/env": "^2.1.0", "vlucas/phpdotenv": "^5.3", "wpackagist-plugin/limit-login-attempts-reloaded": "*", "wpackagist-plugin/spinupwp": "*", diff --git a/config/app.php b/config/app.php index 19e8f41..99f0332 100644 --- a/config/app.php +++ b/config/app.php @@ -10,14 +10,11 @@ */ use \DeliciousBrains\SpinupWPComposerSite\App; +use function Env\env; $root_dir = dirname( __DIR__ ); $webroot_dir = $root_dir . '/public'; -/** - * Expose global env() function from oscarotero/env - */ -Env::init(); /** * Use Dotenv to set required environment variables and load .env file in root diff --git a/config/environments/development.php b/config/environments/development.php index 10e32f6..e4aaadb 100644 --- a/config/environments/development.php +++ b/config/environments/development.php @@ -1,5 +1,4 @@