Skip to content

Commit

Permalink
Fix driver node builder to be able to merge node values properly by p…
Browse files Browse the repository at this point in the history
…rofile
  • Loading branch information
Tibor Kotosz committed Dec 17, 2015
1 parent 95b80c7 commit af9fb11
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Bex/Behat/ExtensionDriverLocator/DriverNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function buildDriverNodes(
$defaultActiveDrivers = (is_array($defaultActiveDrivers)) ? $defaultActiveDrivers : [$defaultActiveDrivers];
$builder
->children()
->arrayNode($activeDriversNodeName)
->variableNode($activeDriversNodeName)
->defaultValue($defaultActiveDrivers)
->beforeNormalization()
->ifString()
Expand All @@ -59,13 +59,11 @@ public function buildDriverNodes(
->ifTrue($this->getDriverKeyValidator())
->thenInvalid('%s')
->end()
->prototype('scalar')->end()
->end()
->end()
->fixXmlConfig($driversNodeName . '_child', $driversNodeName)
->children()
->arrayNode($driversNodeName)
->useAttributeAsKey('name')
->prototype('array')
->useAttributeAsKey('name')
->prototype('scalar')->end()
->end()
->end()
Expand Down

0 comments on commit af9fb11

Please sign in to comment.