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