|
@@ 409-414 (lines=6) @@
|
| 406 |
|
$viewHandler = $container->getDefinition('fos_rest.view_handler.default'); |
| 407 |
|
$options = array(); |
| 408 |
|
|
| 409 |
|
if (!empty($config['serializer']['version'])) { |
| 410 |
|
if ($bodyConverter) { |
| 411 |
|
$bodyConverter->replaceArgument(2, $config['serializer']['version']); |
| 412 |
|
} |
| 413 |
|
$options['exclusionStrategyVersion'] = $config['serializer']['version']; |
| 414 |
|
} |
| 415 |
|
|
| 416 |
|
if (!empty($config['serializer']['groups'])) { |
| 417 |
|
if ($bodyConverter) { |
|
@@ 416-421 (lines=6) @@
|
| 413 |
|
$options['exclusionStrategyVersion'] = $config['serializer']['version']; |
| 414 |
|
} |
| 415 |
|
|
| 416 |
|
if (!empty($config['serializer']['groups'])) { |
| 417 |
|
if ($bodyConverter) { |
| 418 |
|
$bodyConverter->replaceArgument(1, $config['serializer']['groups']); |
| 419 |
|
} |
| 420 |
|
$options['exclusionStrategyGroups'] = $config['serializer']['groups']; |
| 421 |
|
} |
| 422 |
|
|
| 423 |
|
$options['serializeNullStrategy'] = $config['serializer']['serialize_null']; |
| 424 |
|
$viewHandler->addArgument($options); |