aboutsummaryrefslogtreecommitdiffstats
path: root/config/dotenv.php
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-20 16:11:50 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-20 16:15:08 +0100
commit73a5c7fae9ffbe9ada721148c8c454a643aceebe (patch)
treec8fad013ed9b5dd589add87f8d45cf02bbfc6e91 /config/dotenv.php
parentb01239fbdcc5bbc5921f73ec0e8fee7bedd5c8e8 (diff)
chore!: restructure repo
I separated public files from the config/dev files. It improves repo readability. I also moved dotenv helper to public/inc directory and extract the Matomo tracker in the same directory.
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 '';
- }
-}