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