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