Symfony's Source context provider always provides file path, line (file, line) and name (name) that may be the file name or template name (when Twig is used).
In some cases it may provide extra keys like project_dir, file_excerpt, file_relative, file_link.
Now all the values are rendered like separated tags:
The proposal:
Render file and line as one tags:
File: D:/foo/bar/baz.php:42
In case when name is the same as file name (baz.php) - skip it.
Symfony's
Source
context provider always provides file path, line (file
,line
) and name (name
) that may be the file name or template name (when Twig is used). In some cases it may provide extra keys likeproject_dir
,file_excerpt
,file_relative
,file_link
.Now all the values are rendered like separated tags:
The proposal:
Render
file
andline
as one tags:In case when
name
is the same as file name (baz.php
) - skip it.