@@ 429-434 (lines=6) @@ | ||
426 | $viewHandler = $container->getDefinition('fos_rest.view_handler.default'); |
|
427 | $options = array(); |
|
428 | ||
429 | if (!empty($config['serializer']['version'])) { |
|
430 | if ($bodyConverter) { |
|
431 | $bodyConverter->replaceArgument(2, $config['serializer']['version']); |
|
432 | } |
|
433 | $options['exclusionStrategyVersion'] = $config['serializer']['version']; |
|
434 | } |
|
435 | ||
436 | if (!empty($config['serializer']['groups'])) { |
|
437 | if ($bodyConverter) { |
|
@@ 436-441 (lines=6) @@ | ||
433 | $options['exclusionStrategyVersion'] = $config['serializer']['version']; |
|
434 | } |
|
435 | ||
436 | if (!empty($config['serializer']['groups'])) { |
|
437 | if ($bodyConverter) { |
|
438 | $bodyConverter->replaceArgument(1, $config['serializer']['groups']); |
|
439 | } |
|
440 | $options['exclusionStrategyGroups'] = $config['serializer']['groups']; |
|
441 | } |
|
442 | ||
443 | $options['serializeNullStrategy'] = $config['serializer']['serialize_null']; |
|
444 | $viewHandler->addArgument($options); |