From c13ca48ca568e81a4bcb43e5437b181ec5ddaf83 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 18 Dec 2024 11:13:19 +0100 Subject: [PATCH] Use .html.twig in code example instead of .html --- src/TokenParser/FromTokenParser.php | 2 +- src/TokenParser/ImportTokenParser.php | 2 +- src/TokenParser/IncludeTokenParser.php | 4 ++-- src/TokenParser/SandboxTokenParser.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/TokenParser/FromTokenParser.php b/src/TokenParser/FromTokenParser.php index 3bb4201a3dd..c8732df29f6 100644 --- a/src/TokenParser/FromTokenParser.php +++ b/src/TokenParser/FromTokenParser.php @@ -21,7 +21,7 @@ /** * Imports macros. * - * {% from 'forms.html' import forms %} + * {% from 'forms.html.twig' import forms %} * * @internal */ diff --git a/src/TokenParser/ImportTokenParser.php b/src/TokenParser/ImportTokenParser.php index 5b3a5f2b8d4..f23584a5a42 100644 --- a/src/TokenParser/ImportTokenParser.php +++ b/src/TokenParser/ImportTokenParser.php @@ -20,7 +20,7 @@ /** * Imports macros. * - * {% import 'forms.html' as forms %} + * {% import 'forms.html.twig' as forms %} * * @internal */ diff --git a/src/TokenParser/IncludeTokenParser.php b/src/TokenParser/IncludeTokenParser.php index 466f2288c63..a72250cb290 100644 --- a/src/TokenParser/IncludeTokenParser.php +++ b/src/TokenParser/IncludeTokenParser.php @@ -19,9 +19,9 @@ /** * Includes a template. * - * {% include 'header.html' %} + * {% include 'header.html.twig' %} * Body - * {% include 'footer.html' %} + * {% include 'footer.html.twig' %} * * @internal */ diff --git a/src/TokenParser/SandboxTokenParser.php b/src/TokenParser/SandboxTokenParser.php index a7260ac46fc..536c14f30ba 100644 --- a/src/TokenParser/SandboxTokenParser.php +++ b/src/TokenParser/SandboxTokenParser.php @@ -22,7 +22,7 @@ * Marks a section of a template as untrusted code that must be evaluated in the sandbox mode. * * {% sandbox %} - * {% include 'user.html' %} + * {% include 'user.html.twig' %} * {% endsandbox %} * * @see https://twig.symfony.com/doc/api.html#sandbox-extension for details