Skip to content

Commit

Permalink
When using useAttributeAsKey in Configuration set normalizeKeys(false)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbrown committed Apr 4, 2018
1 parent b61b2a2 commit bbef000
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG-0.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
This changelog references the relevant changes done in 0.x versions.


## v0.3.2
* When using useAttributeAsKey in `Configuration` set `normalizeKeys(false)`.


## v0.3.1
* Add service definition for `gdbots_ncr.node_etag_enricher` to ensure node's always get a new etag on create/update.

Expand Down
4 changes: 4 additions & 0 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ protected function getDynamoDbNcrConfigTree(): NodeDefinition
->end()
->arrayNode('node_tables')
->useAttributeAsKey('name')
->normalizeKeys(false)
->treatNullLike([])
->defaultValue([])
->prototype('array')
Expand Down Expand Up @@ -191,6 +192,7 @@ protected function getElasticaNcrSearchConfigTree(): NodeDefinition
->end()
->arrayNode('indexes')
->useAttributeAsKey('name')
->normalizeKeys(false)
->treatNullLike([])
->defaultValue([])
->prototype('array')
Expand All @@ -208,6 +210,7 @@ protected function getElasticaNcrSearchConfigTree(): NodeDefinition
->end()
->arrayNode('types')
->useAttributeAsKey('name')
->normalizeKeys(false)
->treatNullLike([])
->defaultValue([])
->prototype('array')
Expand All @@ -230,6 +233,7 @@ protected function getElasticaNcrSearchConfigTree(): NodeDefinition
->end()
->arrayNode('clusters')
->useAttributeAsKey('name')
->normalizeKeys(false)
->treatNullLike($defaultCluster)
->defaultValue($defaultCluster)
->prototype('array')
Expand Down

0 comments on commit bbef000

Please sign in to comment.