@@ 392-397 (lines=6) @@ | ||
389 | $viewHandler = $container->getDefinition('fos_rest.view_handler.default'); |
|
390 | $options = array(); |
|
391 | ||
392 | if (!empty($config['serializer']['version'])) { |
|
393 | if ($bodyConverter) { |
|
394 | $bodyConverter->replaceArgument(2, $config['serializer']['version']); |
|
395 | } |
|
396 | $options['exclusionStrategyVersion'] = $config['serializer']['version']; |
|
397 | } |
|
398 | ||
399 | if (!empty($config['serializer']['groups'])) { |
|
400 | if ($bodyConverter) { |
|
@@ 399-404 (lines=6) @@ | ||
396 | $options['exclusionStrategyVersion'] = $config['serializer']['version']; |
|
397 | } |
|
398 | ||
399 | if (!empty($config['serializer']['groups'])) { |
|
400 | if ($bodyConverter) { |
|
401 | $bodyConverter->replaceArgument(1, $config['serializer']['groups']); |
|
402 | } |
|
403 | $options['exclusionStrategyGroups'] = $config['serializer']['groups']; |
|
404 | } |
|
405 | ||
406 | $options['serializeNullStrategy'] = $config['serializer']['serialize_null']; |
|
407 | $viewHandler->addArgument($options); |