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