|
@@ 270-274 (lines=5) @@
|
| 267 |
|
} |
| 268 |
|
|
| 269 |
|
$formats = []; |
| 270 |
|
foreach ($config['view']['formats'] as $format => $enabled) { |
| 271 |
|
if ($enabled) { |
| 272 |
|
$formats[$format] = false; |
| 273 |
|
} |
| 274 |
|
} |
| 275 |
|
foreach ($config['view']['templating_formats'] as $format => $enabled) { |
| 276 |
|
if ($enabled) { |
| 277 |
|
$formats[$format] = true; |
|
@@ 275-279 (lines=5) @@
|
| 272 |
|
$formats[$format] = false; |
| 273 |
|
} |
| 274 |
|
} |
| 275 |
|
foreach ($config['view']['templating_formats'] as $format => $enabled) { |
| 276 |
|
if ($enabled) { |
| 277 |
|
$formats[$format] = true; |
| 278 |
|
} |
| 279 |
|
} |
| 280 |
|
|
| 281 |
|
$container->getDefinition('fos_rest.routing.loader.yaml_collection')->replaceArgument(3, $formats); |
| 282 |
|
$container->getDefinition('fos_rest.routing.loader.xml_collection')->replaceArgument(3, $formats); |