8000 [FrameworkBundle] Validator component is too coupled with translator · Issue #31181 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] Validator component is too coupled with translator #31181

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
edefimov opened this issue Apr 19, 2019 · 1 comment
Closed

[FrameworkBundle] Validator component is too coupled with translator #31181

edefimov opened this issue Apr 19, 2019 · 1 comment

Comments

@edefimov
Copy link
Contributor

Symfony version(s) affected: 4.2.7

Description
Using of framework bundle with symfony/validator component installed, but without symfony/translator component leads to php error during container building stage:

In LegacyTranslatorProxy.php line 21:
                                                                                                     
  Attempted to load interface "TranslatorInterface" from namespace "Symfony\Component\Translation".  
  Did you forget a "use" statement for "Symfony\Contracts\Translation\TranslatorInterface"?  

How to reproduce
Use this composer.json

{
    "require": {
        "symfony/flex": "^1.2",
        "symfony/framework-bundle": "^4.2",
        "symfony/console": "^4.2",
        "symfony/validator": "^4.2",
        "symfony/yaml": "^4.2"
    },
    "scripts": {
        "auto-scripts": {
            "cache:clear": "symfony-cmd",
            "assets:install %PUBLIC_DIR%": "symfony-cmd"
        }
    },
    "require-dev": {
        "symfony/dotenv": "^4.2"
    },
    "autoload": {
	"psr-4": {
	    "App\\": "src"
	}
    }
}

then run:

composer install
bin/console
@xabbuh
Copy link
Member
xabbuh commented Apr 19, 2019

see #31152 which was fixed in #31156

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

No branches or pull requests

2 participants
0