@@ 476-481 (lines=6) @@ | ||
473 | $viewHandler = $container->getDefinition('fos_rest.view_handler.default'); |
|
474 | $options = array(); |
|
475 | ||
476 | if (!empty($config['serializer']['version'])) { |
|
477 | if ($bodyConverter) { |
|
478 | $bodyConverter->replaceArgument(2, $config['serializer']['version']); |
|
479 | } |
|
480 | $options['exclusionStrategyVersion'] = $config['serializer']['version']; |
|
481 | } |
|
482 | ||
483 | if (!empty($config['serializer']['groups'])) { |
|
484 | if ($bodyConverter) { |
|
@@ 483-488 (lines=6) @@ | ||
480 | $options['exclusionStrategyVersion'] = $config['serializer']['version']; |
|
481 | } |
|
482 | ||
483 | if (!empty($config['serializer']['groups'])) { |
|
484 | if ($bodyConverter) { |
|
485 | $bodyConverter->replaceArgument(1, $config['serializer']['groups']); |
|
486 | } |
|
487 | $options['exclusionStrategyGroups'] = $config['serializer']['groups']; |
|
488 | } |
|
489 | ||
490 | $options['serializeNullStrategy'] = $config['serializer']['serialize_null']; |
|
491 | $viewHandler->addArgument($options); |