Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb65212f

Browse files
committed
Some fixes in structure overriding:
* 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
1 parentaf2749f commitb65212f

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
@@ -141,8 +141,8 @@ Override the Translations Directory
141141
-----------------------------------
142142

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

147147
..configuration-block::
148148

@@ -152,7 +152,7 @@ configuration option to define your own translations directory (or directories):
152152
framework:
153153
translator:
154154
# ...
155-
paths:["%kernel.project_dir%/i18n"]
155+
default_path:"%kernel.project_dir%/i18n"
156156
157157
..code-block::xml
158158
@@ -168,7 +168,7 @@ configuration option to define your own translations directory (or directories):
168168
169169
<framework:config>
170170
<framework:translator>
171-
<framework:path>%kernel.project_dir%/i18n</framework:path>
171+
<framework:default-path>%kernel.project_dir%/i18n</framework:default-path>
172172
</framework:translator>
173173
</framework:config>
174174
@@ -179,9 +179,7 @@ configuration option to define your own translations directory (or directories):
179179
// config/packages/translation.php
180180
$container->loadFromExtension('framework', [
181181
'translator' => [
182-
'paths' => [
183-
'%kernel.project_dir%/i18n',
184-
],
182+
'default_path' => '%kernel.project_dir%/i18n',
185183
],
186184
]);
187185
@@ -192,7 +190,7 @@ Override the Public Directory
192190
-----------------------------
193191

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp