Skip to content

Commit

Permalink
Autoloader Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrick Peter committed May 7, 2023
1 parent 384ba9c commit 502d728
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/AutoloadEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,27 +292,27 @@ 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' => [
'path' => "{$serverPath}init.php",
'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",
],
];
Expand Down

0 comments on commit 502d728

Please sign in to comment.