From 4de89c22d67dd0a936eb2ea09deb0376af8883f5 Mon Sep 17 00:00:00 2001 From: Oliver Stark Date: Mon, 12 Aug 2019 15:01:52 +0200 Subject: [PATCH] support vlucas/phpdotenv ^2.5 | ^3.4 - and use one or the other --- bin/craft-copy-env.php | 6 +++--- bin/craft-copy-import-db.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/craft-copy-env.php b/bin/craft-copy-env.php index 0f35490..a3880c0 100755 --- a/bin/craft-copy-env.php +++ b/bin/craft-copy-env.php @@ -15,9 +15,9 @@ // dotenv? 3.x vs 2.x if (file_exists($root . '/.env')) { - $dotenv = (method_exists('DotEnv\DotEnv', 'create')) - ? DotEnv\DotEnv::create($root) - : new Dotenv\Dotenv($root); + $dotenv = (method_exists('\Dotenv\Dotenv', 'create')) + ? \Dotenv\Dotenv::create($root) + : new \Dotenv\Dotenv($root); $dotenv->load(); } diff --git a/bin/craft-copy-import-db.php b/bin/craft-copy-import-db.php index 599c07e..c030bb5 100755 --- a/bin/craft-copy-import-db.php +++ b/bin/craft-copy-import-db.php @@ -20,9 +20,9 @@ // dotenv? 3.x vs 2.x if (file_exists($root . '/.env')) { - $dotenv = (method_exists('DotEnv\DotEnv', 'create')) - ? DotEnv\DotEnv::create($root) - : new Dotenv\Dotenv($root); + $dotenv = (method_exists('\Dotenv\Dotenv', 'create')) + ? \Dotenv\Dotenv::create($root) + : new \Dotenv\Dotenv($root); $dotenv->load(); }