@@ 487-492 (lines=6) @@ | ||
484 | $viewHandler = $container->getDefinition('fos_rest.view_handler.default'); |
|
485 | $options = array(); |
|
486 | ||
487 | if (!empty($config['serializer']['version'])) { |
|
488 | if ($bodyConverter) { |
|
489 | $bodyConverter->replaceArgument(2, $config['serializer']['version']); |
|
490 | } |
|
491 | $options['exclusionStrategyVersion'] = $config['serializer']['version']; |
|
492 | } |
|
493 | ||
494 | if (!empty($config['serializer']['groups'])) { |
|
495 | if ($bodyConverter) { |
|
@@ 494-499 (lines=6) @@ | ||
491 | $options['exclusionStrategyVersion'] = $config['serializer']['version']; |
|
492 | } |
|
493 | ||
494 | if (!empty($config['serializer']['groups'])) { |
|
495 | if ($bodyConverter) { |
|
496 | $bodyConverter->replaceArgument(1, $config['serializer']['groups']); |
|
497 | } |
|
498 | $options['exclusionStrategyGroups'] = $config['serializer']['groups']; |
|
499 | } |
|
500 | ||
501 | $options['serializeNullStrategy'] = $config['serializer']['serialize_null']; |
|
502 | $viewHandler->addArgument($options); |