@@ 313-317 (lines=5) @@ | ||
310 | } |
|
311 | ||
312 | $formats = []; |
|
313 | foreach ($config['view']['formats'] as $format => $enabled) { |
|
314 | if ($enabled) { |
|
315 | $formats[$format] = false; |
|
316 | } |
|
317 | } |
|
318 | foreach ($config['view']['templating_formats'] as $format => $enabled) { |
|
319 | if ($enabled) { |
|
320 | $formats[$format] = true; |
|
@@ 318-322 (lines=5) @@ | ||
315 | $formats[$format] = false; |
|
316 | } |
|
317 | } |
|
318 | foreach ($config['view']['templating_formats'] as $format => $enabled) { |
|
319 | if ($enabled) { |
|
320 | $formats[$format] = true; |
|
321 | } |
|
322 | } |
|
323 | ||
324 | $container->getDefinition('fos_rest.routing.loader.yaml_collection')->replaceArgument(3, $formats); |
|
325 | $container->getDefinition('fos_rest.routing.loader.xml_collection')->replaceArgument(3, $formats); |