Skip to content

Commit 46a908b

Browse files
authored
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
1 parent 66d9ffb commit 46a908b

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
twig:
2+
file_name_pattern: '*.twig'
3+
4+
when@test:
5+
twig:
6+
strict_variables: true

symfony/twig-bundle/6.4/manifest.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"bundles": {
3+
"Symfony\\Bundle\\TwigBundle\\TwigBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/",
7+
"templates/": "templates/"
8+
},
9+
"conflict": {
10+
"symfony/framework-bundle": "<5.3"
11+
}
12+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>{% block title %}Welcome!{% endblock %}</title>
6+
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
7+
{% block stylesheets %}
8+
{% endblock %}
9+
10+
{% block javascripts %}
11+
{% endblock %}
12+
</head>
13+
<body>
14+
{% block body %}{% endblock %}
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)