File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -148,14 +148,14 @@ The default translation domain can be changed globally using the
148
148
149
149
.. code-block :: yaml
150
150
151
- # config/packages/translation .yaml
151
+ # config/packages/validator .yaml
152
152
framework :
153
- translator :
153
+ validation :
154
154
translation_domain : validation_errors
155
155
156
156
.. code-block :: xml
157
157
158
- <!-- config/packages/translation .xml -->
158
+ <!-- config/packages/validator .xml -->
159
159
<?xml version =" 1.0" encoding =" UTF-8" ?>
160
160
<container xmlns =" http://symfony.com/schema/dic/services"
161
161
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -166,22 +166,21 @@ The default translation domain can be changed globally using the
166
166
https://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
167
167
168
168
<framework : config >
169
- <framework : translator
169
+ <framework : validation
170
170
translation-domain =" validation_errors"
171
171
/>
172
172
</framework : config >
173
173
</container >
174
174
175
175
.. code-block :: php
176
176
177
- // config/packages/translation .php
177
+ // config/packages/validator .php
178
178
use Symfony\Config\FrameworkConfig;
179
179
180
180
return static function (FrameworkConfig $framework) {
181
181
// ...
182
182
$framework
183
- ->defaultLocale('en')
184
- ->translator()
183
+ ->validation()
185
184
->translationDomain('validation_errors')
186
185
;
187
186
};
You can’t perform that action at this time.
0 commit comments