|
@@ 318-322 (lines=5) @@
|
| 315 |
|
} |
| 316 |
|
|
| 317 |
|
$formats = []; |
| 318 |
|
foreach ($config['view']['formats'] as $format => $enabled) { |
| 319 |
|
if ($enabled) { |
| 320 |
|
$formats[$format] = false; |
| 321 |
|
} |
| 322 |
|
} |
| 323 |
|
foreach ($config['view']['templating_formats'] as $format => $enabled) { |
| 324 |
|
if ($enabled) { |
| 325 |
|
$formats[$format] = true; |
|
@@ 323-327 (lines=5) @@
|
| 320 |
|
$formats[$format] = false; |
| 321 |
|
} |
| 322 |
|
} |
| 323 |
|
foreach ($config['view']['templating_formats'] as $format => $enabled) { |
| 324 |
|
if ($enabled) { |
| 325 |
|
$formats[$format] = true; |
| 326 |
|
} |
| 327 |
|
} |
| 328 |
|
|
| 329 |
|
$container->getDefinition('fos_rest.routing.loader.yaml_collection')->replaceArgument(3, $formats); |
| 330 |
|
$container->getDefinition('fos_rest.routing.loader.xml_collection')->replaceArgument(3, $formats); |