Skip to content

Commit fd1b0ff

Browse files
committed
Fix translator
1 parent db1d3aa commit fd1b0ff

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

src/Resources/config/violation.xml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,16 @@
3535
<defaults public="true">
3636
</defaults>
3737

38-
<service id="translator.default" class="Symfony\Bundle\FrameworkBundle\Translation\Translator">
39-
<argument type="service" id="service_container"/>
40-
<argument type="service" id="translator.formatter"/>
41-
<argument>%kernel.default_locale%</argument>
42-
<argument type="collection"/> <!-- translation loaders ids -->
43-
<argument type="collection">
44-
<argument key="cache_dir">%kernel.cache_dir%/translations</argument>
45-
<argument key="debug">%kernel.debug%</argument>
46-
</argument>
47-
<call method="setConfigCacheFactory">
48-
<argument type="service" id="config_cache_factory"/>
49-
</call>
50-
<tag name="kernel.locale_aware"/>
51-
</service>
52-
5338

5439
<service id="FabianFroehlich\Validator\Violation\DataConstraintViolationBuilder">
5540
<argument type="service" id="service_container"/>
56-
<argument type="service" id="translator.default"/>
41+
<argument type="service" id="translator"/>
5742
</service>
5843

5944
<service id="FabianFroehlich\Validator\Violation\MetadataConstraintViolationBuilder">
6045
<argument type="service" id="service_container"/>
6146
<argument type="service" id="annotations.reader"/>
62-
<argument type="service" id="translator.default"/>
47+
<argument type="service" id="translator"/>
6348
</service>
6449

6550

0 commit comments

Comments
 (0)