8000 [DI] dump OS-indepent paths in the preload file · symfony/symfony@e8feba5 · GitHub
[go: up one dir, main page]

Skip to content

Commit e8feba5

Browse files
[DI] dump OS-indepent paths in the preload file
1 parent 3c5a4ed commit e8feba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Dumper/Preloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function append(string $file, array $list): void
2727

2828
foreach ($list as $item) {
2929
if (0 === strpos($item, $cacheDir)) {
30-
file_put_contents($file, sprintf("require_once __DIR__.%s;\n", var_export(substr($item, \strlen($cacheDir)), true)), \FILE_APPEND);
30+
file_put_contents($file, sprintf("require_once __DIR__.%s;\n", var_export(strtr(substr($item, \strlen($cacheDir)), \DIRECTORY_SEPARATOR, '/'), true)), \FILE_APPEND);
3131
continue;
3232
}
3333

0 commit comments

Comments
 (0)
0