@@ 325-329 (lines=5) @@ | ||
322 | } |
|
323 | ||
324 | $formats = []; |
|
325 | foreach ($config['view']['formats'] as $format => $enabled) { |
|
326 | if ($enabled) { |
|
327 | $formats[$format] = false; |
|
328 | } |
|
329 | } |
|
330 | foreach ($config['view']['templating_formats'] as $format => $enabled) { |
|
331 | if ($enabled) { |
|
332 | $formats[$format] = true; |
|
@@ 330-334 (lines=5) @@ | ||
327 | $formats[$format] = false; |
|
328 | } |
|
329 | } |
|
330 | foreach ($config['view']['templating_formats'] as $format => $enabled) { |
|
331 | if ($enabled) { |
|
332 | $formats[$format] = true; |
|
333 | } |
|
334 | } |
|
335 | ||
336 | if ($config['routing_loader']['enabled']) { |
|
337 | $container->getDefinition('fos_rest.routing.loader.yaml_collection')->replaceArgument(3, $formats); |