@@ 297-301 (lines=5) @@ | ||
294 | } |
|
295 | ||
296 | $formats = []; |
|
297 | foreach ($config['view']['formats'] as $format => $enabled) { |
|
298 | if ($enabled) { |
|
299 | $formats[$format] = false; |
|
300 | } |
|
301 | } |
|
302 | foreach ($config['view']['templating_formats'] as $format => $enabled) { |
|
303 | if ($enabled) { |
|
304 | $formats[$format] = true; |
|
@@ 302-306 (lines=5) @@ | ||
299 | $formats[$format] = false; |
|
300 | } |
|
301 | } |
|
302 | foreach ($config['view']['templating_formats'] as $format => $enabled) { |
|
303 | if ($enabled) { |
|
304 | $formats[$format] = true; |
|
305 | } |
|
306 | } |
|
307 | ||
308 | $container->getDefinition('fos_rest.routing.loader.yaml_collection')->replaceArgument(3, $formats); |
|
309 | $container->getDefinition('fos_rest.routing.loader.xml_collection')->replaceArgument(3, $formats); |