From 502d7280f1416c00af55a66215dd7d8bf98e14a5 Mon Sep 17 00:00:00 2001 From: Fredrick Peter Date: Sun, 7 May 2023 13:55:46 +0100 Subject: [PATCH] Autoloader Fixed --- src/AutoloadEnv.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/AutoloadEnv.php b/src/AutoloadEnv.php index 946cda5..d46bb8d 100644 --- a/src/AutoloadEnv.php +++ b/src/AutoloadEnv.php @@ -292,7 +292,7 @@ static private function isDummyNotPresent() */ static private function getPathsData() { - $serverPath = DOT_ENV_CONNECTION['self_path']['path']; + $serverPath = str_replace('\\', '/', DOT_ENV_CONNECTION['self_path']['path']); $realPath = str_replace('\\', '/', rtrim(realpath(__DIR__), "/\\")); return [ 'init' => [ @@ -300,19 +300,19 @@ static private function getPathsData() 'dummy' => "{$realPath}/Dummy/dummyInit.php", ], 'gitignore' => [ - 'path' => "{$serverPath}\.gitignore", + 'path' => "{$serverPath}.gitignore", 'dummy' => "{$realPath}/Dummy/dummyGitIgnore.php", ], 'htaccess' => [ - 'path' => "{$serverPath}\.htaccess", + 'path' => "{$serverPath}.htaccess", 'dummy' => "{$realPath}/Dummy/dummyHtaccess.php", ], 'phpini' => [ - 'path' => "{$serverPath}\php.ini", + 'path' => "{$serverPath}php.ini", 'dummy' => "{$realPath}/Dummy/dummyPhpIni.php", ], 'userini' => [ - 'path' => "{$serverPath}\.user.ini", + 'path' => "{$serverPath}.user.ini", 'dummy' => "{$realPath}/Dummy/dummyUserIni.php", ], ];