Skip to content

Commit a33c56c

Browse files
committed
minor #8694 Make use of %kernel.project_dir% parameter (michaelperrin)
This PR was merged into the 3.3 branch. Discussion ---------- Make use of %kernel.project_dir% parameter Commits ------- 364220d Make use of %kernel.project_dir% parameter
2 parents a3184fd + 364220d commit a33c56c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

configuration/override_dir_structure.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ define your own templates directory (or directories):
104104
# app/config/config.yml
105105
twig:
106106
# ...
107-
paths: ["%kernel.root_dir%/../templates"]
107+
paths: ["%kernel.project_dir%/templates"]
108108
109109
.. code-block:: xml
110110
@@ -119,7 +119,7 @@ define your own templates directory (or directories):
119119
http://symfony.com/schema/dic/twig/twig-1.0.xsd">
120120
121121
<twig:config>
122-
<twig:path>%kernel.root_dir%/../templates</twig:path>
122+
<twig:path>%kernel.project_dir%/templates</twig:path>
123123
</twig:config>
124124
125125
</container>
@@ -129,7 +129,7 @@ define your own templates directory (or directories):
129129
// app/config/config.php
130130
$container->loadFromExtension('twig', array(
131131
'paths' => array(
132-
'%kernel.root_dir%/../templates',
132+
'%kernel.project_dir%/templates',
133133
),
134134
));
135135
@@ -197,7 +197,7 @@ You also need to change the ``extra.symfony-web-dir`` option in the
197197
http://symfony.com/schema/dic/assetic/assetic-1.0.xsd">
198198
199199
<!-- ... -->
200-
<assetic:config read-from="%kernel.root_dir%/../../public_html" />
200+
<assetic:config read-from="%kernel.project_dir%/../public_html" />
201201
202202
</container>
203203

0 commit comments

Comments
 (0)