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