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