aboutsummaryrefslogtreecommitdiffstats
path: root/config/dotenv.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/dotenv.php')
-rw-r--r--config/dotenv.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/config/dotenv.php b/config/dotenv.php
deleted file mode 100644
index cb462d9..0000000
--- a/config/dotenv.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-/**
- * Get current environment defined in .env file.
- *
- * @since 1.2.0
- *
- * @return string Current env or empty string.
- */
-function dap_get_current_env()
-{
- if (file_exists(dirname(__DIR__) . '/vendor/autoload.php')) {
- require_once dirname(__DIR__) . '/vendor/autoload.php';
- $dotenv = Dotenv\Dotenv::createImmutable(dirname(__DIR__));
- $dotenv->safeLoad();
- $current_env = $_ENV['CURRENT_ENV'];
- return $current_env;
- } else {
- return '';
- }
-}