Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6005884

Browse files
committed
call method with Translator component only
1 parent87aef69 commit6005884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ private function registerValidationConfiguration(array $config, ContainerBuilder
11081108

11091109
$validatorBuilder =$container->getDefinition('validator.builder');
11101110

1111-
if (class_exists(LegacyTranslatorProxy::class)) {
1111+
if (class_exists(Translator::class) &&class_exists(LegacyTranslatorProxy::class)) {
11121112
$calls =$validatorBuilder->getMethodCalls();
11131113
$calls[1] = ['setTranslator', [newDefinition(LegacyTranslatorProxy::class, [newReference('translator')])]];
11141114
$validatorBuilder->setMethodCalls($calls);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp