You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I switched my code to use new Symfony\Contracts\Translation\TranslatorInterface, but I get this error Argument .. passed to ::__construct() must implement interface Symfony\Contracts\Translation\TranslatorInterface, instance of Symfony\Component\Translation\LoggingTranslator given
How to reproduce
try to autowire translator
Possible Solution
LoggingTranslator should implement Symfony\Contracts\Translation\TranslatorInterface
The text was updated successfully, but these errors were encountered:
…lation\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
Symfony version(s) affected: 4.2 beta 1
Description
I switched my code to use new
Symfony\Contracts\Translation\TranslatorInterface
, but I get this errorArgument .. passed to ::__construct() must implement interface Symfony\Contracts\Translation\TranslatorInterface, instance of Symfony\Component\Translation\LoggingTranslator given
How to reproduce
try to autowire translator
Possible Solution
LoggingTranslator should implement
Symfony\Contracts\Translation\TranslatorInterface
The text was updated successfully, but these errors were encountered: