8000 bug #24943 [FrameworkBundle] Wire the translation.reader service inst… · symfony/symfony@136e3b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 136e3b2

Browse files
committed
bug #24943 [FrameworkBundle] Wire the translation.reader service instead of deprecated translation.loader in commands (ogizanagi)
This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Wire the translation.reader service instead of deprecated translation.loader in commands | Q | A | ------------- | --- | Branch? | 3.4 <!-- see comment below --> | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | N/A <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A to get rid of the following deprec: > The class "Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader" is deprecated since version 3.4 and will be removed in 4.0. Use "Symfony\Component\Translation\Reader\TranslationReader" Commits ------- 8da283b [FrameworkBundle] Wire the translation.reader service instead of deprecated translation.loader in commands
2 parents e2ad892 + 8da283b commit 136e3b2

File tree

1 file changed

+2
-2
lines changed
  • src/Symfony/Bundle/FrameworkBundle/Resources/config

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@
7676

7777
<service id="Symfony\Bundle\FrameworkBundle\Command\TranslationDebugCommand">
7878
<argument type="service" id="translator" />
79-
<argument type="service" id="translation.loader" />
79+
<argument type="service" id="translation.reader" />
8080
<argument type="service" id="translation.extractor" />
8181
<tag name="console.command" command="debug:translation" />
8282
</service>
8383

8484
<service id="Symfony\Bundle\FrameworkBundle\Command\TranslationUpdateCommand">
8585
<argument type="service" id="translation.writer" />
86-
<argument type="service" id="translation.loader" />
86+
<argument type="service" id="translation.reader" />
8787
<argument type="service" id="translation.extractor" />
8888
<argument>%kernel.default_locale%</argument>
8989
<tag name="console.command" command="translation:update" />

0 commit comments

Comments
 (0)
0