|
@@ 285-289 (lines=5) @@
|
| 282 |
|
} |
| 283 |
|
|
| 284 |
|
$formats = []; |
| 285 |
|
foreach ($config['view']['formats'] as $format => $enabled) { |
| 286 |
|
if ($enabled) { |
| 287 |
|
$formats[$format] = false; |
| 288 |
|
} |
| 289 |
|
} |
| 290 |
|
foreach ($config['view']['templating_formats'] as $format => $enabled) { |
| 291 |
|
if ($enabled) { |
| 292 |
|
$formats[$format] = true; |
|
@@ 290-294 (lines=5) @@
|
| 287 |
|
$formats[$format] = false; |
| 288 |
|
} |
| 289 |
|
} |
| 290 |
|
foreach ($config['view']['templating_formats'] as $format => $enabled) { |
| 291 |
|
if ($enabled) { |
| 292 |
|
$formats[$format] = true; |
| 293 |
|
} |
| 294 |
|
} |
| 295 |
|
|
| 296 |
|
$container->getDefinition('fos_rest.routing.loader.yaml_collection')->replaceArgument(3, $formats); |
| 297 |
|
$container->getDefinition('fos_rest.routing.loader.xml_collection')->replaceArgument(3, $formats); |