From 46a908bfa4c4473cdc1ca26a5535c69365dfe83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Sat, 20 Jan 2024 10:56:04 +0100 Subject: [PATCH] Add TwigBundle 6.4 with `file_name_pattern: *.twig` (#1256) * Add TwigBundle 6.4 with file_name_pattern=*.twig * Remove twig.default_path as it's already the default value https://github.com/symfony/symfony/blob/v6.4.0-RC1/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php#L145C33-L145C33 * Add "sf" to the favicon to look like the Symfony logo --- .../twig-bundle/6.4/config/packages/twig.yaml | 6 ++++++ symfony/twig-bundle/6.4/manifest.json | 12 ++++++++++++ symfony/twig-bundle/6.4/templates/base.html.twig | 16 ++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 symfony/twig-bundle/6.4/config/packages/twig.yaml create mode 100644 symfony/twig-bundle/6.4/manifest.json create mode 100644 symfony/twig-bundle/6.4/templates/base.html.twig diff --git a/symfony/twig-bundle/6.4/config/packages/twig.yaml b/symfony/twig-bundle/6.4/config/packages/twig.yaml new file mode 100644 index 000000000..3f795d921 --- /dev/null +++ b/symfony/twig-bundle/6.4/config/packages/twig.yaml @@ -0,0 +1,6 @@ +twig: + file_name_pattern: '*.twig' + +when@test: + twig: + strict_variables: true diff --git a/symfony/twig-bundle/6.4/manifest.json b/symfony/twig-bundle/6.4/manifest.json new file mode 100644 index 000000000..c4835ac76 --- /dev/null +++ b/symfony/twig-bundle/6.4/manifest.json @@ -0,0 +1,12 @@ +{ + "bundles": { + "Symfony\\Bundle\\TwigBundle\\TwigBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/", + "templates/": "templates/" + }, + "conflict": { + "symfony/framework-bundle": "<5.3" + } +} diff --git a/symfony/twig-bundle/6.4/templates/base.html.twig b/symfony/twig-bundle/6.4/templates/base.html.twig new file mode 100644 index 000000000..1069c1476 --- /dev/null +++ b/symfony/twig-bundle/6.4/templates/base.html.twig @@ -0,0 +1,16 @@ + + + + + {% block title %}Welcome!{% endblock %} + + {% block stylesheets %} + {% endblock %} + + {% block javascripts %} + {% endblock %} + + + {% block body %}{% endblock %} + +