|
@@ 305-309 (lines=5) @@
|
| 302 |
|
} |
| 303 |
|
|
| 304 |
|
$formats = []; |
| 305 |
|
foreach ($config['view']['formats'] as $format => $enabled) { |
| 306 |
|
if ($enabled) { |
| 307 |
|
$formats[$format] = false; |
| 308 |
|
} |
| 309 |
|
} |
| 310 |
|
foreach ($config['view']['templating_formats'] as $format => $enabled) { |
| 311 |
|
if ($enabled) { |
| 312 |
|
$formats[$format] = true; |
|
@@ 310-314 (lines=5) @@
|
| 307 |
|
$formats[$format] = false; |
| 308 |
|
} |
| 309 |
|
} |
| 310 |
|
foreach ($config['view']['templating_formats'] as $format => $enabled) { |
| 311 |
|
if ($enabled) { |
| 312 |
|
$formats[$format] = true; |
| 313 |
|
} |
| 314 |
|
} |
| 315 |
|
|
| 316 |
|
$container->getDefinition('fos_rest.routing.loader.yaml_collection')->replaceArgument(3, $formats); |
| 317 |
|
$container->getDefinition('fos_rest.routing.loader.xml_collection')->replaceArgument(3, $formats); |