Skip to content

Added fixing the xml config for most configuration options #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function getConfigTreeBuilder()
protected function addConnections(ArrayNodeDefinition $node)
{
$node
->fixXmlConfig('connection')
->children()
->arrayNode('connections')
->useAttributeAsKey('key')
Expand All @@ -63,6 +64,7 @@ protected function addConnections(ArrayNodeDefinition $node)
protected function addProducers(ArrayNodeDefinition $node)
{
$node
->fixXmlConfig('producer')
->children()
->arrayNode('producers')
->canBeUnset()
Expand All @@ -84,6 +86,7 @@ protected function addProducers(ArrayNodeDefinition $node)
protected function addConsumers(ArrayNodeDefinition $node)
{
$node
->fixXmlConfig('consumer')
->children()
->arrayNode('consumers')
->canBeUnset()
Expand Down Expand Up @@ -114,6 +117,7 @@ protected function addConsumers(ArrayNodeDefinition $node)
protected function addMultipleConsumers(ArrayNodeDefinition $node)
{
$node
->fixXmlConfig('multiple_consumer')
->children()
->arrayNode('multiple_consumers')
->canBeUnset()
Expand Down Expand Up @@ -142,6 +146,7 @@ protected function addMultipleConsumers(ArrayNodeDefinition $node)
protected function addAnonConsumers(ArrayNodeDefinition $node)
{
$node
->fixXmlConfig('anon_consumer')
->children()
->arrayNode('anon_consumers')
->canBeUnset()
Expand All @@ -161,6 +166,7 @@ protected function addAnonConsumers(ArrayNodeDefinition $node)
protected function addRpcClients(ArrayNodeDefinition $node)
{
$node
->fixXmlConfig('rpc_client')
->children()
->arrayNode('rpc_clients')
->canBeUnset()
Expand All @@ -179,6 +185,7 @@ protected function addRpcClients(ArrayNodeDefinition $node)
protected function addRpcServers(ArrayNodeDefinition $node)
{
$node
->fixXmlConfig('rpc_server')
->children()
->arrayNode('rpc_servers')
->canBeUnset()
Expand Down