Commit 8215922
committed
bug symfony#2342 [TwigComponent] Fix directory separator in Debug command (clussiana, smnandre)
This PR was merged into the 2.x branch.
Discussion
----------
[TwigComponent] Fix directory separator in Debug command
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| Issues |
| License | MIT
Component template paths are retrieved by the `SplFileInfo` class, which returns paths containing backslashes on Windows and slashes on other operating systems.
So on Windows environment, the command fails as the component `Card\Card.html.twig` is not formatted into `Card:Card`
Commits
-------
41d9df0 Fix copy/paste error
3664af5 CS fix
d906c6e fix: replace / by DIRECTORY_SEPARATOR1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
0 commit comments