Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef3be0b

Browse files
bug #29090 LoggingTranslator should implement Symfony\Contracts\Translation\TranslatorInterface (desmax)
This PR was merged into the 4.2-dev branch. Discussion ---------- LoggingTranslator should implement Symfony\Contracts\Translation\TranslatorInterface | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #29089 | License | MIT While autowiring Translator using `Symfony\Contracts\Translation\TranslatorInterface` symfony complains that wrong service was injected, because LoggingTranslator does not implement new interface. Commits ------- 65f321f LoggingTranslator should implement Symfony\Contracts\Translation\TranslatorInterface
2 parents f9198c2 + 65f321f commit ef3be0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Translation/LoggingTranslator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* @author Abdellatif Ait boudad <[email protected]>
2121
*/
22-
class LoggingTranslator implements LegacyTranslatorInterface, TranslatorBagInterface
22+
class LoggingTranslator implements TranslatorInterface, LegacyTranslatorInterface, TranslatorBagInterface
2323
{
2424
/**
2525
* @var TranslatorInterface|TranslatorBagInterface

0 commit comments

Comments
 (0)