Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit622a9d0

Browse files
committed
Use DIRECTORY_SEPARATOR constant to avoid Windows issues
1 parentf0b76fd commit622a9d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/AppBundle/Twig/SourceCodeExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ private function getControllerRelativePath()
8282
$class =new \ReflectionClass($className);
8383

8484
$absolutePath =$class->getFilename();
85-
$pathParts =explode('/src/',$absolutePath);
86-
$relativePath ='src/'.$pathParts[1];
85+
$pathParts =explode(DIRECTORY_SEPARATOR.'src'.DIRECTORY_SEPARATOR,$absolutePath);
86+
$relativePath ='src'.DIRECTORY_SEPARATOR.$pathParts[1];
8787

8888
return$relativePath;
8989
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp