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