We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8dc87b commit 473c257Copy full SHA for 473c257
src/Twig/SourceCodeExtension.php
@@ -30,19 +30,16 @@
30
*/
31
final class SourceCodeExtension extends AbstractExtension
32
{
33
- private FileLinkFormatter $fileLinkFormat;
34
- private string $projectDir;
35
/**
36
* @var callable|null
37
38
private $controller;
39
40
public function __construct(
41
- FileLinkFormatter $fileLinkFormat,
+ private FileLinkFormatter $fileLinkFormat,
42
#[Autowire('%kernel.project_dir%')]
43
- string $projectDir,
+ private string $projectDir,
44
) {
45
- $this->fileLinkFormat = $fileLinkFormat;
46
$this->projectDir = str_replace('\\', '/', $projectDir).'/';
47
}
48
0 commit comments