11
11
12
12
namespace Symfony \Bundle \FrameworkBundle \DependencyInjection \Compiler ;
13
13
14
+ use Symfony \Component \DependencyInjection \Argument \IteratorArgument ;
14
15
use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
15
16
use Symfony \Component \DependencyInjection \Compiler \PriorityTaggedServiceTrait ;
16
17
use Symfony \Component \DependencyInjection \ContainerBuilder ;
@@ -36,15 +37,15 @@ public function process(ContainerBuilder $container)
36
37
$ definition = $ container ->getDefinition ('property_info ' );
37
38
38
39
$ listExtractors = $ this ->findAndSortTaggedServices ('property_info.list_extractor ' , $ container );
39
- $ definition ->replaceArgument (0 , $ listExtractors );
40
+ $ definition ->replaceArgument (0 , new IteratorArgument ( $ listExtractors) );
40
41
41
42
$ typeExtractors = $ this ->findAndSortTaggedServices ('property_info.type_extractor ' , $ container );
42
- $ definition ->replaceArgument (1 , $ typeExtractors );
43
+ $ definition ->replaceArgument (1 , new IteratorArgument ( $ typeExtractors) );
43
44
44
45
$ descriptionExtractors = $ this ->findAndSortTaggedServices ('property_info.description_extractor ' , $ container );
45
- $ definition ->replaceArgument (2 , $ descriptionExtractors );
46
+ $ definition ->replaceArgument (2 , new IteratorArgument ( $ descriptionExtractors) );
46
47
47
48
$ accessExtractors = $ this ->findAndSortTaggedServices ('property_info.access_extractor ' , $ container );
48
- $ definition ->replaceArgument (3 , $ accessExtractors );
49
+ $ definition ->replaceArgument (3 , new IteratorArgument ( $ accessExtractors) );
49
50
}
50
51
}
0 commit comments