-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] decorate the ValidatorBuilder's translator with LegacyTranslatorProxy #31108
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
Conversation
…acyTranslatorProxy
01b2963
to
a12656e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change corrects the error I was getting. Thank you!
…or with LegacyTranslatorProxy (nicolas-grekas) This PR was merged into the 4.2 branch. Discussion ---------- [FrameworkBundle] decorate the ValidatorBuilder's translator with LegacyTranslatorProxy | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #31092, #31025 | License | MIT | Doc PR | - This allows defining a translator that implements only the new interface and use it with ValidatorBuilder. ping @dvdknaap, @snebes since you were affected. Commits ------- a12656e [FrameworkBundle] decorate the ValidatorBuilder's translator with LegacyTranslatorProxy
"require": {
"php": "^7.2",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-apcu": "*",
"ext-pdo_pgsql": "*",
"ext-curl": "*",
"ext-json": "*",
"ext-soap": "*",
"ext-intl": "*",
"symfony/console": "4.2.*",
"symfony/dotenv": "4.2.*",
"symfony/flex": "^1.1",
"symfony/framework-bundle": "4.2.*",
"symfony/yaml": "4.2.*",
"symfony/orm-pack": "*",
"symfony/validator": "4.2.*",
"symfony/security-bundle": "4.2.*",
"symfony/intl": "4.2.*",
"symfony/form": "4.2.*",
"symfony/serializer": "4.2.*",
"symfony/monolog-bundle": "^3.3",
"misd/phone-number-bundle": "^2.0@dev",
"nelmio/api-doc-bundle": "^3.4",
"nelmio/cors-bundle": "^1.5",
"lexik/jwt-authentication-bundle": "^2.6",
"martin-georgiev/postgresql-for-doctrine": "^1.1",
"fresh/doctrine-enum-bundle": "^6.2",
"barbieswimcrew/zip-code-validator": "^1.3",
"symfony/swiftmailer-bundle": "^3.2",
"symfony/twig-bundle": "4.2.*",
"shapecode/cron-bundle": "^3.2.3",
"pagerfanta/pagerfanta": "^2.0",
"wsdltophp/packagegenerator": "^3.2",
"wsdltophp/wssecurity": "^1.2"
},
"require-dev": {
"symfony/maker-bundle": "^1.7",
"symfony/debug-bundle": "4.2.*",
"easycorp/easy-log-handler": "^1.0.5",
"phpstan/phpstan-symfony": "^0.10",
"phpstan/phpstan-phpunit": "^0.10",
"friendsofphp/php-cs-fixer": "^2.13"
}, after update
|
temporary add to requirements |
This breaks Contao (https://github.com/contao/contao) 4.7.4 in combination with symfony/validator (v4.2.7):
The Contao translator still implements the legacy interface and is blindly wrapped into the proxy. With symfony/framework-bundle v4.2.6 everything workes fine. |
See #31152 |
Thanks @nicolas-grekas |
This allows defining a translator that implements only the new interface and use it with ValidatorBuilder.
ping @dvdknaap, @snebes since you were affected.