8000 bug #40877 [Config] Make sure one can build cache on Windows and then… · symfony/symfony@71c6c42 · GitHub
[go: up one dir, main page]

Skip to content

Commit 71c6c42

Browse files
bug #40877 [Config] Make sure one can build cache on Windows and then run in (Docker) Linux (Nyholm)
This PR was merged into the 5.3-dev branch. Discussion ---------- [Config] Make sure one can build cache on Windows and then run in (Docker) Linux | Q | A | ------------- | --- | Branch? | 5.x | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | The generated ConfigBuilders should use the `\DirectorySeparator` constant. The resulting string will look like this: ```php <?php namespace Symfony\Config; require_once __DIR__.\DIRECTORY_SEPARATOR.'Twig'.\DIRECTORY_SEPARATOR.'GlobalConfig.php'; require_once __DIR__.\DIRECTORY_SEPARATOR.'Twig'.\DIRECTORY_SEPARATOR.'DateConfig.php'; require_once __DIR__.\DIRECTORY_SEPARATOR.'Twig'.\DIRECTORY_SEPARATOR.'NumberFormatConfig.php'; /** * This class is automatically generated to help creating config. * * @experimental in 5.3 */ class TwigConfig implements \Symfony\Component\Config\Builder\ConfigBuilderInterface { private $formThemes; ``` Commits ------- 555c7dd [Config] Make sure one can build cache on Windows and then run in (Docker) Linux
2 parents f82c118 + 555c7dd commit 71c6c42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Config/Builder/ClassBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function build(): string
6464
}
6565
unset($path[$key]);
6666
}
67-
$require .= sprintf('require_once __DIR__.\'%s\';', \DIRECTORY_SEPARATOR.implode(\DIRECTORY_SEPARATOR, $path))."\n";
67+
$require .= sprintf('require_once __DIR__.\DIRECTORY_SEPARATOR.\'%s\';', implode('\'.\DIRECTORY_SEPARATOR.\'', $path))."\n";
6868
}
6969

7070
$implements = [] === $this->implements ? '' : 'implements '.implode(', ', $this->implements);

0 commit comments

Comments
 (0)
0