Skip to content

Commit a15894e

Browse files
feature #25701 [FrameworkBundle] add autowiring aliases for TranslationReaderInterface, ExtractorInterface & TranslationWriterInterface (Dennis Langen)
This PR was merged into the 4.1-dev branch. Discussion ---------- [FrameworkBundle] add autowiring aliases for TranslationReaderInterface, ExtractorInterface & TranslationWriterInterface | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25679 | License | MIT | Doc PR | Supporting #25679 Commits ------- e2ddc17 adding interface alias for reader, writer and extractor
2 parents ebf3f0e + e2ddc17 commit a15894e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/translation.xml

+3
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,13 @@
126126
</service>
127127

128128
<service id="translation.reader" class="Symfony\Component\Translation\Reader\TranslationReader" />
129+
<service id="Symfony\Component\Translation\Reader\TranslationReaderInterface" alias="translation.reader" />
129130

130131
<service id="translation.extractor" class="Symfony\Component\Translation\Extractor\ChainExtractor" />
132+
<service id="Symfony\Component\Translation\Extractor\ExtractorInterface" alias="translation.extractor" />
131133

132134
<service id="translation.writer" class="Symfony\Component\Translation\Writer\TranslationWriter" />
135+
<service id="Symfony\Component\Translation\Writer\TranslationWriterInterface" alias="translation.writer" />
133136

134137
<service id="translation.warmer" class="Symfony\Bundle\FrameworkBundle\CacheWarmer\TranslationsCacheWarmer">
135138
<tag name="container.service_subscriber" id="translator" />

0 commit comments

Comments
 (0)