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