diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-10-31 22:00:51 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-10-31 22:00:51 +0100 |
| commit | 3be752d822e12a34ff388b98f8654ab02a8ea586 (patch) | |
| tree | 72bb9f74429b786cad184f80953028276b352ebf /config/dotenv.php | |
| parent | 8b61702c2804a4ab2f9e8596e0f2d88a99199f69 (diff) | |
build: fix composer autoload path
Diffstat (limited to 'config/dotenv.php')
| -rw-r--r-- | config/dotenv.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/dotenv.php b/config/dotenv.php index 16d31af..cb462d9 100644 --- a/config/dotenv.php +++ b/config/dotenv.php @@ -8,9 +8,9 @@ */ function dap_get_current_env() { - if (file_exists(__DIR__ . '/vendor/autoload.php')) { - require_once __DIR__ . '/vendor/autoload.php'; - $dotenv = Dotenv\Dotenv::createImmutable(__DIR__); + 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; |
