@@ 271-275 (lines=5) @@ | ||
268 | } |
|
269 | ||
270 | $formats = []; |
|
271 | foreach ($config['view']['formats'] as $format => $enabled) { |
|
272 | if ($enabled) { |
|
273 | $formats[$format] = false; |
|
274 | } |
|
275 | } |
|
276 | foreach ($config['view']['templating_formats'] as $format => $enabled) { |
|
277 | if ($enabled) { |
|
278 | $formats[$format] = true; |
|
@@ 276-280 (lines=5) @@ | ||
273 | $formats[$format] = false; |
|
274 | } |
|
275 | } |
|
276 | foreach ($config['view']['templating_formats'] as $format => $enabled) { |
|
277 | if ($enabled) { |
|
278 | $formats[$format] = true; |
|
279 | } |
|
280 | } |
|
281 | ||
282 | $container->getDefinition('fos_rest.routing.loader.yaml_collection')->replaceArgument(3, $formats); |
|
283 | $container->getDefinition('fos_rest.routing.loader.xml_collection')->replaceArgument(3, $formats); |