src/DependencyInjection/Compiler/DocumentHydratorCompilerPass.php 1 location
|
@@ 15-25 (lines=11) @@
|
| 12 |
|
/** |
| 13 |
|
* {@inheritdoc} |
| 14 |
|
*/ |
| 15 |
|
public function process(ContainerBuilder $container) |
| 16 |
|
{ |
| 17 |
|
$definition = $container->findDefinition('mrtn_json_api.document_hydrator'); |
| 18 |
|
$extensions = $container->findTaggedServiceIds('mrtn_json_api.document_hydrator.extension'); |
| 19 |
|
|
| 20 |
|
foreach ($extensions as $id => $tags) { |
| 21 |
|
$definition->addMethodCall('registerExtension', [ |
| 22 |
|
new Reference($id) |
| 23 |
|
]); |
| 24 |
|
} |
| 25 |
|
} |
| 26 |
|
} |
src/DependencyInjection/Compiler/ObjectMapperCompilerPass.php 1 location
|
@@ 46-56 (lines=11) @@
|
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
protected function processDataTypeHandlers(ContainerBuilder $container) |
| 47 |
|
{ |
| 48 |
|
$definition = $container->findDefinition('mrtn_json_api.object_mapper.datatype_manager'); |
| 49 |
|
$extensions = $container->findTaggedServiceIds('mrtn_json_api.object_mapper.datatype_handler'); |
| 50 |
|
|
| 51 |
|
foreach ($extensions as $id => $tags) { |
| 52 |
|
$definition->addMethodCall('registerDataTypeHandler', [ |
| 53 |
|
new Reference($id) |
| 54 |
|
]); |
| 55 |
|
} |
| 56 |
|
} |
| 57 |
|
} |