merged branch tecbot/patch-1 (PR #9092)
This PR was merged into the master branch.
Discussion
----------
use "translator" alias not "translator.default"
Validator is the only instance which references to the "translator.default" service. It should reference to the "translator" service so the validator can use a custom validator if the user overwrites the "translator" alias.
Commits
-------
9e38819
use "translator" alias not "translator.default"
This commit is contained in:
commit
846fd49800
@ -24,7 +24,7 @@
|
||||
<service id="validator" class="%validator.class%">
|
||||
<argument type="service" id="validator.mapping.class_metadata_factory" />
|
||||
<argument type="service" id="validator.validator_factory" />
|
||||
<argument type="service" id="translator.default" />
|
||||
<argument type="service" id="translator" />
|
||||
<argument>%validator.translation_domain%</argument>
|
||||
<argument type="collection" />
|
||||
</service>
|
||||
|
Reference in New Issue
Block a user