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