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