@@ 19-24 (lines=6) @@ | ||
16 | parent::build($builder); |
|
17 | ||
18 | $builder->addCompilerPass(new LazyServiceMapPass('tpg_extjs.serialization_visitor', 'format', |
|
19 | function(ContainerBuilder $container, Definition $def) { |
|
20 | if ($container->hasDefinition("tpg_extjs.orm_serializer")) |
|
21 | $container->getDefinition('tpg_extjs.orm_serializer')->replaceArgument(3, $def); |
|
22 | if ($container->hasDefinition("tpg_extjs.odm_serializer")) |
|
23 | $container->getDefinition('tpg_extjs.odm_serializer')->replaceArgument(3, $def); |
|
24 | } |
|
25 | )); |
|
26 | $builder->addCompilerPass(new LazyServiceMapPass('tpg_extjs.deserialization_visitor', 'format', |
|
27 | function(ContainerBuilder $container, Definition $def) { |
|
@@ 27-32 (lines=6) @@ | ||
24 | } |
|
25 | )); |
|
26 | $builder->addCompilerPass(new LazyServiceMapPass('tpg_extjs.deserialization_visitor', 'format', |
|
27 | function(ContainerBuilder $container, Definition $def) { |
|
28 | if ($container->hasDefinition("tpg_extjs.orm_serializer")) |
|
29 | $container->getDefinition('tpg_extjs.orm_serializer')->replaceArgument(4, $def); |
|
30 | if ($container->hasDefinition("tpg_extjs.odm_serializer")) |
|
31 | $container->getDefinition('tpg_extjs.odm_serializer')->replaceArgument(4, $def); |
|
32 | } |
|
33 | )); |
|
34 | ||
35 | $builder->addCompilerPass(new SerializerParserPass()); |