@@ 377-382 (lines=6) @@ | ||
374 | $viewHandler = $container->getDefinition('fos_rest.view_handler.default'); |
|
375 | $options = array(); |
|
376 | ||
377 | if (!empty($config['serializer']['version'])) { |
|
378 | if ($bodyConverter) { |
|
379 | $bodyConverter->replaceArgument(2, $config['serializer']['version']); |
|
380 | } |
|
381 | $options['exclusionStrategyVersion'] = $config['serializer']['version']; |
|
382 | } |
|
383 | ||
384 | if (!empty($config['serializer']['groups'])) { |
|
385 | if ($bodyConverter) { |
|
@@ 384-389 (lines=6) @@ | ||
381 | $options['exclusionStrategyVersion'] = $config['serializer']['version']; |
|
382 | } |
|
383 | ||
384 | if (!empty($config['serializer']['groups'])) { |
|
385 | if ($bodyConverter) { |
|
386 | $bodyConverter->replaceArgument(1, $config['serializer']['groups']); |
|
387 | } |
|
388 | $options['exclusionStrategyGroups'] = $config['serializer']['groups']; |
|
389 | } |
|
390 | ||
391 | $options['serializeNullStrategy'] = $config['serializer']['serialize_null']; |
|
392 | $viewHandler->addArgument($options); |