diff --git a/lib/Container/Compiler/FieldType/RichTextIndexablePass.php b/lib/Container/Compiler/FieldType/RichTextIndexablePass.php index 9cf5bee3..29395758 100644 --- a/lib/Container/Compiler/FieldType/RichTextIndexablePass.php +++ b/lib/Container/Compiler/FieldType/RichTextIndexablePass.php @@ -31,7 +31,7 @@ private function redefineIndexableImplementation(ContainerBuilder $container, $s $definition = $container->findDefinition($originalServiceId); $definition->setClass(IndexableRichText::class); - $definition->setArgument(0, $shortTextLimit); + $definition->addArgument($shortTextLimit); $definition->addTag('ezpublish.fieldType.indexable', ['alias' => 'ezrichtext']); $container->setDefinition($originalServiceId, $definition); diff --git a/lib/Container/Compiler/FieldType/XmlTextIndexablePass.php b/lib/Container/Compiler/FieldType/XmlTextIndexablePass.php index d29bcf7c..6300704e 100644 --- a/lib/Container/Compiler/FieldType/XmlTextIndexablePass.php +++ b/lib/Container/Compiler/FieldType/XmlTextIndexablePass.php @@ -29,7 +29,7 @@ private function redefineIndexableImplementation(ContainerBuilder $container, $s $definition = $container->findDefinition($originalServiceId); $definition->setClass(IndexableXmlText::class); - $definition->setArgument(0, $shortTextLimit); + $definition->addArgument($shortTextLimit); $definition->addTag('ezpublish.fieldType.indexable', ['alias' => 'ezxmltext']); $container->setDefinition($originalServiceId, $definition); diff --git a/lib/Container/Compiler/FieldTypeRegistryPass.php b/lib/Container/Compiler/FieldTypeRegistryPass.php index ca0e87a0..af675674 100644 --- a/lib/Container/Compiler/FieldTypeRegistryPass.php +++ b/lib/Container/Compiler/FieldTypeRegistryPass.php @@ -26,7 +26,7 @@ public function process(ContainerBuilder $container) $fieldTypeRegistry->setClass($fieldTypeRegistryClass); if (count($fieldTypeRegistry->getArguments()) > 0) { - $fieldTypeRegistry->setArgument(0, $fieldTypeRegistryClass); + $fieldTypeRegistry->replaceArgument(0, $fieldTypeRegistryClass); } } }