diff --git a/src/GeneratorTwigHelper.php b/src/GeneratorTwigHelper.php index b0aca4545..c1c42af6d 100644 --- a/src/GeneratorTwigHelper.php +++ b/src/GeneratorTwigHelper.php @@ -83,6 +83,8 @@ public function getHeadPrintCode($title): string public function getFileLink($path, $text = null, $line = 0): string { + trigger_deprecation('symfony/maker-bundle', 'v1.53.0', 'getFileLink() is deprecated and will be removed in the future.'); + $text = $text ?: $path; return "$text"; diff --git a/src/Resources/skeleton/controller/twig_template.tpl.php b/src/Resources/skeleton/controller/twig_template.tpl.php index 641318f92..e06dfc7a3 100644 --- a/src/Resources/skeleton/controller/twig_template.tpl.php +++ b/src/Resources/skeleton/controller/twig_template.tpl.php @@ -11,8 +11,8 @@ This friendly message is coming from: {% endblock %}