Skip to content

Commit 8864a60

Browse files
[*Bundle] Replace some kernel.root_dir by kernel.project_dir
1 parent d6d4290 commit 8864a60

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Resources/config/services.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<argument>%kernel.root_dir%/Resources</argument>
5757
<argument type="collection">
5858
<argument>%kernel.root_dir%</argument>
59+
<argument>%kernel.project_dir%</argument>
5960
</argument>
6061
</service>
6162
<service id="Symfony\Component\HttpKernel\Config\FileLocator" alias="file_locator" />

Templating/Helper/CodeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CodeHelper extends Helper
3131
public function __construct($fileLinkFormat, $rootDir, $charset)
3232
{
3333
$this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format');
34-
$this->rootDir = str_replace('\\', '/', $rootDir).'/';
34+
$this->rootDir = str_replace('\\', '/', dirname($rootDir)).'/';
3535
$this->charset = $charset;
3636
}
3737

0 commit comments

Comments
 (0)