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
SyliusThemeBundle overrides default translator service with the one that implements Symfony\Component\Translation\TranslatorInterface but not Symfony\Contracts\Translation\TranslatorInterface. This causes Symfony\Component\Validator\Util\LegacyTranslatorProxy to fail because it expects translator service to implement the contract's translator interface. It is a BC break AFAIK.
How to reproduce
Override translator service not to implement Symfony\Contracts\Translation\TranslatorInterface but Symfony\Component\Translation\TranslatorInterface instead.
Possible Solution
make Symfony\Component\Translation\TranslatorInterface extend Symfony\Contracts\Translation\TranslatorInterface
allow Symfony\Component\Translation\TranslatorInterface instance to be passed to Symfony\Component\Validator\Util\LegacyTranslatorProxy
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: 4.2.7
Description
SyliusThemeBundle overrides default
translator
service with the one that implementsSymfony\Component\Translation\TranslatorInterface
but notSymfony\Contracts\Translation\TranslatorInterface
. This causesSymfony\Component\Validator\Util\LegacyTranslatorProxy
to fail because it expectstranslator
service to implement the contract's translator interface. It is a BC break AFAIK.https://travis-ci.org/Sylius/Sylius/jobs/521619940#L834
How to reproduce
Override
translator
service not to implementSymfony\Contracts\Translation\TranslatorInterface
butSymfony\Component\Translation\TranslatorInterface
instead.Possible Solution
Symfony\Component\Translation\TranslatorInterface
extendSymfony\Contracts\Translation\TranslatorInterface
Symfony\Component\Translation\TranslatorInterface
instance to be passed toSymfony\Component\Validator\Util\LegacyTranslatorProxy
The text was updated successfully, but these errors were encountered: