Skip to content

Commit 606de16

Browse files
committed
fix xml config handling
1 parent 7ce8934 commit 606de16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ private function configureClients(ArrayNodeDefinition $root)
155155
{
156156
$pluginNode = $root->children()
157157
->arrayNode('clients')
158-
->fixXmlConfig('plugin')
159158
->validate()
160159
->ifTrue(function ($clients) {
161160
foreach ($clients as $name => $config) {
@@ -168,6 +167,7 @@ private function configureClients(ArrayNodeDefinition $root)
168167
->thenInvalid('A http client can\'t be decorated with both FlexibleHttpClient and HttpMethodsClient. Only one of the following options can be true. ("flexible_client", "http_methods_client")')->end()
169168
->useAttributeAsKey('name')
170169
->prototype('array')
170+
->fixXmlConfig('plugin')
171171
->children()
172172
->scalarNode('factory')
173173
->isRequired()

Tests/Unit/DependencyInjection/ConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function testSupportsAllConfigFormats()
209209
return __DIR__.'/../../Resources/Fixtures/'.$path;
210210
}, [
211211
'config/full.yml',
212-
// TODO fix xml config 'config/full.xml',
212+
'config/full.xml',
213213
'config/full.php',
214214
]);
215215

0 commit comments

Comments
 (0)