@@ 463-468 (lines=6) @@ | ||
460 | $viewHandler = $container->getDefinition('fos_rest.view_handler.default'); |
|
461 | $options = array(); |
|
462 | ||
463 | if (!empty($config['serializer']['version'])) { |
|
464 | if ($bodyConverter) { |
|
465 | $bodyConverter->replaceArgument(2, $config['serializer']['version']); |
|
466 | } |
|
467 | $options['exclusionStrategyVersion'] = $config['serializer']['version']; |
|
468 | } |
|
469 | ||
470 | if (!empty($config['serializer']['groups'])) { |
|
471 | if ($bodyConverter) { |
|
@@ 470-475 (lines=6) @@ | ||
467 | $options['exclusionStrategyVersion'] = $config['serializer']['version']; |
|
468 | } |
|
469 | ||
470 | if (!empty($config['serializer']['groups'])) { |
|
471 | if ($bodyConverter) { |
|
472 | $bodyConverter->replaceArgument(1, $config['serializer']['groups']); |
|
473 | } |
|
474 | $options['exclusionStrategyGroups'] = $config['serializer']['groups']; |
|
475 | } |
|
476 | ||
477 | $options['serializeNullStrategy'] = $config['serializer']['serialize_null']; |
|
478 | $viewHandler->addArgument($options); |