Skip to content

Commit 765e80e

Browse files
committed
bug #62513 [FrameworkBundle] Add missing useAttributeAsKey calls (MatTheCat)
This PR was merged into the 6.4 branch. Discussion ---------- [FrameworkBundle] Add missing `useAttributeAsKey` calls | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #62512 | License | MIT Add `name` attribute as key for the following configuration nodes: - `framework.http_client.default_options.vars` - `framework.http_client.default_options.extra` - `framework.http_client.scoped_clients.*.extra` This will also fix the config reference array shapes when merged in ≥ 7.4. Commits ------- e8337bc [FrameworkBundle] Add missing `useAttributeAsKey` calls
2 parents 86e50a0 + e8337bc commit 765e80e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,6 +1857,7 @@ private function addHttpClientSection(ArrayNodeDefinition $rootNode, callable $e
18571857
->end()
18581858
->arrayNode('vars')
18591859
->info('Associative array: the default vars used to expand the templated URI.')
1860+
->useAttributeAsKey('name')
18601861
->normalizeKeys(false)
18611862
->variablePrototype()->end()
18621863
->end()
@@ -1937,6 +1938,7 @@ private function addHttpClientSection(ArrayNodeDefinition $rootNode, callable $e
19371938
->end()
19381939
->arrayNode('extra')
19391940
->info('Extra options for specific HTTP client')
1941+
->useAttributeAsKey('name')
19401942
->normalizeKeys(false)
19411943
->variablePrototype()->end()
19421944
->end()
@@ -2088,6 +2090,7 @@ private function addHttpClientSection(ArrayNodeDefinition $rootNode, callable $e
20882090
->end()
20892091
->arrayNode('extra')
20902092
->info('Extra options for specific HTTP client')
2093+
->useAttributeAsKey('name')
20912094
->normalizeKeys(false)
20922095
->variablePrototype()->end()
20932096
->end()

0 commit comments

Comments
 (0)