Skip to content

Commit

Permalink
ignore not existing translator service
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Jul 23, 2019
1 parent 30a1986 commit 12bf0b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ private function registerValidationConfiguration(array $config, ContainerBuilder

if (interface_exists(TranslatorInterface::class) && class_exists(LegacyTranslatorProxy::class)) {
$calls = $validatorBuilder->getMethodCalls();
$calls[1] = ['setTranslator', [new Definition(LegacyTranslatorProxy::class, [new Reference('translator')])]];
$calls[1] = ['setTranslator', [new Definition(LegacyTranslatorProxy::class, [new Reference('translator', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)])]];
$validatorBuilder->setMethodCalls($calls);
}

Expand Down

0 comments on commit 12bf0b0

Please sign in to comment.