8000 minor #14147 Some fixes in structure overriding page (l-vo) · symfony/symfony-docs@2f25a69 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f25a69

Browse files
committed
minor #14147 Some fixes in structure overriding page (l-vo)
This PR was merged into the 4.4 branch. Discussion ---------- Some fixes in structure overriding page * Use `default_path` instead of `paths` to change translation directory (default_path is anyway added to paths) * Replace `var` by `vendor` in the public directory section (I think it's a typo, I don't see why `var` would be involved when public dir is customized) In the same way, a #14135 targets 3.4 to use `default_path` instead of `paths` for templates. Commits ------- b65212f Some fixes in structure overriding:
2 parents 19b9cd9 + b65212f commit 2f25a69

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

configuration/override_dir_structure.rst

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ Override the Translations Directory
140140
-----------------------------------
141141

142142
If your translation files are not stored in the default ``translations/``
143-
directory, use the :ref:`framework.translator.paths <reference-translator-paths>`
144-
configuration option to define your own translations directory (or directories):
143+
directory, use the :ref:`framework.translator.default_path <reference-translator-default_path>`
144+
configuration option to define your own translations directory (use :ref:`framework.translator.paths <reference-translator-paths>` for multiple directories):
145145

146146
.. configuration-block::
147147

@@ -151,7 +151,7 @@ configuration option to define your own translations directory (or directories):
151151
framework:
152152
translator:
153153
# ...
154-
paths: ["%kernel.project_dir%/i18n"]
154+
default_path: "%kernel.project_dir%/i18n"
155155
156156
.. code-block:: xml
157157
@@ -167,7 +167,7 @@ configuration option to define your own translations directory (or directories):
167167
168168
<framework:config>
169169
<framework:translator>
170-
<framework:path>%kernel.project_dir%/i18n</framework:path>
170+
<framework:default-path>%kernel.project_dir%/i18n</framework:default-path>
171171
</framework:translator>
172172
</framework:config>
173173
@@ -178,9 +178,7 @@ configuration option to define your own translations directory (or directories):
178178
// config/packages/translation.php
179179
$container->loadFromExtension('framework', [
180180
'translator' => [
181-
'paths' => [
182-
'%kernel.project_dir%/i18n',
183-
],
181+
'default_path' => '%kernel.project_dir%/i18n',
184182
],
185183
]);
186184
@@ -191,7 +189,7 @@ Override the Public Directory
191189
-----------------------------
192190

193191
If you need to rename or move your ``public/`` directory, the only thing you
194-
need to guarantee is that the path to the ``var/`` directory is still correct in
192+
need to guarantee is that the path to the ``vendor/`` directory is still correct in
195193
your ``index.php`` front controller. If you renamed the directory, you're fine.
196194
But if you moved it in some way, you may need to modify these paths inside those
197195
files::

0 commit comments

Comments
 (0)
0