Skip to content

Commit 502d728

Browse files
author
Fredrick Peter
committed
Autoloader Fixed
1 parent 384ba9c commit 502d728

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/AutoloadEnv.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,27 +292,27 @@ static private function isDummyNotPresent()
292292
*/
293293
static private function getPathsData()
294294
{
295-
$serverPath = DOT_ENV_CONNECTION['self_path']['path'];
295+
$serverPath = str_replace('\\', '/', DOT_ENV_CONNECTION['self_path']['path']);
296296
$realPath = str_replace('\\', '/', rtrim(realpath(__DIR__), "/\\"));
297297
return [
298298
'init' => [
299299
'path' => "{$serverPath}init.php",
300300
'dummy' => "{$realPath}/Dummy/dummyInit.php",
301301
],
302302
'gitignore' => [
303-
'path' => "{$serverPath}\.gitignore",
303+
'path' => "{$serverPath}.gitignore",
304304
'dummy' => "{$realPath}/Dummy/dummyGitIgnore.php",
305305
],
306306
'htaccess' => [
307-
'path' => "{$serverPath}\.htaccess",
307+
'path' => "{$serverPath}.htaccess",
308308
'dummy' => "{$realPath}/Dummy/dummyHtaccess.php",
309309
],
310310
'phpini' => [
311-
'path' => "{$serverPath}\php.ini",
311+
'path' => "{$serverPath}php.ini",
312312
'dummy' => "{$realPath}/Dummy/dummyPhpIni.php",
313313
],
314314
'userini' => [
315-
'path' => "{$serverPath}\.user.ini",
315+
'path' => "{$serverPath}.user.ini",
316316
'dummy' => "{$realPath}/Dummy/dummyUserIni.php",
317317
],
318318
];

0 commit comments

Comments
 (0)