Skip to content

[Validator] Translation Component dependency not met #31212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
JarJak opened this issue Apr 23, 2019 · 1 comment
Closed

[Validator] Translation Component dependency not met #31212

JarJak opened this issue Apr 23, 2019 · 1 comment

Comments

@JarJak
Copy link

JarJak commented Apr 23, 2019

Symfony version(s) affected: 4.2

Description
After composer require validator on fresh project I get:

!!  PHP Fatal error:  Interface 'Symfony\Component\Translation\TranslatorInterface' not found in vendor/symfony/validator/Util/LegacyTranslatorProxy.php on line 21
!!  
!!  In LegacyTranslatorProxy.php line 21:
!!                                                                                 
!!    Attempted to load interface "TranslatorInterface" from namespace "Symfony\C  
!!    omponent\Translation".                                                       
!!    Did you forget a "use" statement for "Symfony\Contracts\Translation\Transla  
!!    torInterface"?                                                               
!!                               

However I don't need Translator in my project.

How to reproduce

  1. Init fresh project (from symfony/skeleton)
  2. Require Validator Component

Possible Solution
Remove dependency or add symfony/contracts as a dependency of Validator.

@xabbuh
Copy link
Member

xabbuh commented Apr 23, 2019

See #31152 that was fixed in #31156 and will be part of the 4.2.8 release. I am closing here as a duplicate. Thank you for understanding.

@xabbuh xabbuh closed this as completed Apr 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants