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