1111
1212namespace Symfony \Bundle \FrameworkBundle \DependencyInjection \Compiler ;
1313
14+ use Symfony \Component \DependencyInjection \Argument \IteratorArgument ;
1415use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
1516use Symfony \Component \DependencyInjection \Compiler \PriorityTaggedServiceTrait ;
1617use Symfony \Component \DependencyInjection \ContainerBuilder ;
@@ -36,15 +37,15 @@ public function process(ContainerBuilder $container)
3637 $ definition = $ container ->getDefinition ('property_info ' );
3738
3839 $ listExtractors = $ this ->findAndSortTaggedServices ('property_info.list_extractor ' , $ container );
39- $ definition ->replaceArgument (0 , $ listExtractors );
40+ $ definition ->replaceArgument (0 , new IteratorArgument ( $ listExtractors) );
4041
4142 $ typeExtractors = $ this ->findAndSortTaggedServices ('property_info.type_extractor ' , $ container );
42- $ definition ->replaceArgument (1 , $ typeExtractors );
43+ $ definition ->replaceArgument (1 , new IteratorArgument ( $ typeExtractors) );
4344
4445 $ descriptionExtractors = $ this ->findAndSortTaggedServices ('property_info.description_extractor ' , $ container );
45- $ definition ->replaceArgument (2 , $ descriptionExtractors );
46+ $ definition ->replaceArgument (2 , new IteratorArgument ( $ descriptionExtractors) );
4647
4748 $ accessExtractors = $ this ->findAndSortTaggedServices ('property_info.access_extractor ' , $ container );
48- $ definition ->replaceArgument (3 , $ accessExtractors );
49+ $ definition ->replaceArgument (3 , new IteratorArgument ( $ accessExtractors) );
4950 }
5051}
0 commit comments