Skip to content

Commit afa50f4

Browse files
committed
configure twig
1 parent ecfe93f commit afa50f4

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"symfony/amazon-mailer": "^6.4",
6666
"symfony/mailchimp-mailer": "^6.4",
6767
"symfony/sendgrid-mailer": "^6.4",
68+
"symfony/twig-bundle": "^6.4",
6869
"symfony/messenger": "^6.4"
6970
},
7071
"require-dev": {
@@ -133,6 +134,7 @@
133134
"bundles": [
134135
"Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle",
135136
"Symfony\\Bundle\\MonologBundle\\MonologBundle",
137+
"Symfony\\Bundle\\TwigBundle\\TwigBundle",
136138
"Doctrine\\Bundle\\DoctrineBundle\\DoctrineBundle",
137139
"Doctrine\\Bundle\\MigrationsBundle\\DoctrineMigrationsBundle",
138140
"PhpList\\Core\\EmptyStartPageBundle\\EmptyStartPageBundle"

config/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ imports:
22
- { resource: services.yml }
33
- { resource: doctrine.yml }
44
- { resource: doctrine_migrations.yml }
5-
- { resource: packages/*.yml }
65

76
# Put parameters here that don't need to change on each machine where the app is deployed
87
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration

config/packages/twig.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
twig:
2+
debug: '%kernel.debug%'
3+
strict_variables: '%kernel.debug%'
4+
default_path: 'test/templates'

src/Core/ApplicationKernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
122122
$loader->load($this->getApplicationDir() . '/config/parameters.yml');
123123
$loader->load($this->getRootDir() . '/config/config_' . $this->getEnvironment() . '.yml');
124124
$loader->load($this->getApplicationDir() . '/config/config_modules.yml');
125+
$loader->load($this->getApplicationDir() . '/config/packages/twig.yaml');
125126
}
126127

127128
/**

0 commit comments

Comments
 (0)