@@ 304-308 (lines=5) @@ | ||
301 | } |
|
302 | ||
303 | $formats = []; |
|
304 | foreach ($config['view']['formats'] as $format => $enabled) { |
|
305 | if ($enabled) { |
|
306 | $formats[$format] = false; |
|
307 | } |
|
308 | } |
|
309 | foreach ($config['view']['templating_formats'] as $format => $enabled) { |
|
310 | if ($enabled) { |
|
311 | $formats[$format] = true; |
|
@@ 309-313 (lines=5) @@ | ||
306 | $formats[$format] = false; |
|
307 | } |
|
308 | } |
|
309 | foreach ($config['view']['templating_formats'] as $format => $enabled) { |
|
310 | if ($enabled) { |
|
311 | $formats[$format] = true; |
|
312 | } |
|
313 | } |
|
314 | ||
315 | $container->getDefinition('fos_rest.routing.loader.yaml_collection')->replaceArgument(3, $formats); |
|
316 | $container->getDefinition('fos_rest.routing.loader.xml_collection')->replaceArgument(3, $formats); |