aboutsummaryrefslogtreecommitdiffstats
path: root/public/inc/dotenv.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/inc/dotenv.php')
-rw-r--r--public/inc/dotenv.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/public/inc/dotenv.php b/public/inc/dotenv.php
index eb297e8..e5f2d61 100644
--- a/public/inc/dotenv.php
+++ b/public/inc/dotenv.php
@@ -1,6 +1,14 @@
<?php
/**
- * Dotenv helper.
+ * Dotenv helpers.
+ * php version 7.4
+ *
+ * @category Controller
+ * @package DAP
+ * @author Armand Philippot <contact@armandphilippot.com>
+ * @copyright 2022 Armand Philippot
+ * @license MIT <https://opensource.org/licenses/MIT>
+ * @link https://demo.armandphilippot.com/
*/
/**
@@ -13,11 +21,11 @@
function dap_get_current_env()
{
if (file_exists(dirname(__DIR__) . '/vendor/autoload.php')) {
- require_once dirname(__DIR__) . '/vendor/autoload.php';
+ include_once dirname(__DIR__) . '/vendor/autoload.php';
$dotenv = Dotenv\Dotenv::createImmutable(dirname(__DIR__));
$dotenv->safeLoad();
- $current_env = $_ENV['CURRENT_ENV'];
- return $current_env;
+
+ return $_ENV['CURRENT_ENV'];
} else {
return '';
}