Skip to content

Commit ccc7053

Browse files
Merge branch '3.0'
* 3.0: [VarDumper] Fix tests on PHP 7 [DomCrawler] Clarify the value returned by getPhpFiles() [DependencyInjection] Fix #16461 Let Container::set() replace existing aliases avoid (string) catchable fatal error for instances of __PHP_Incomplete_Class remove unnecessary retrieval and setting of data Update validators.fr.xlf avoid (string) catchable fatal error for __PHP_Incomplete_Class instances sendContent return as parent. [DomCrawler] Remove the overridden getHash() method to prevent problems when cloning the crawler [FrameworkBundle] Fix a typo Added more exceptions to singularify method Add width attribute on SVG [FrameworkBundle] Support autowiring for TranslationInterface [Validator] remove obsolete context and PropertyAccess code [WebProfiler] Fixed styles for search block and menu profiler for IE Edge
2 parents e8c2d1d + 1d5c8b7 commit ccc7053

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Command/TranslationUpdateCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ protected function configure()
4747
))
4848
->setDescription('Updates the translation file')
4949
->setHelp(<<<'EOF'
50-
The <info>%command.name%</info> command extract translation strings from templates
50+
The <info>%command.name%</info> command extracts translation strings from templates
5151
of a given bundle or the app folder. It can display them or merge the new ones into the translation files.
52+
5253
When new translation strings are found it can automatically add a prefix to the translation
5354
message.
5455

Resources/config/translation.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
<call method="setConfigCacheFactory">
1818
<argument type="service" id="config_cache_factory" />
1919
</call>
20+
21+
<autowiring-type>Symfony\Component\Translation\TranslatorInterface</autowiring-type>
2022
</service>
2123

2224
<service id="translator.logging" class="Symfony\Component\Translation\LoggingTranslator" public="false">

Resources/config/validator.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
</service>
4545

4646
<service id="validator.expression" class="Symfony\Component\Validator\Constraints\ExpressionValidator">
47-
<argument type="service" id="property_accessor" />
4847
<tag name="validator.constraint_validator" alias="validator.expression" />
4948
</service>
5049

0 commit comments

Comments
 (0)