Skip to content

Commit

Permalink
Merge pull request #186 from jarrodbutcher/v6
Browse files Browse the repository at this point in the history
Add auth configuration to v6 branch in configuration
  • Loading branch information
Florian Preusner authored Feb 20, 2018
2 parents 05a2394 + 2a371a3 commit 65d4c0d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,12 @@ private function createClientsNode()
->prototype('scalar')
->end()
->end()
->arrayNode('auth')
->prototype('scalar')
->variableNode('auth')
->validate()
->ifTrue(function ($v) {
return !is_array($v) && !is_string($v);
})
->thenInvalid('auth can be: string or array')
->end()
->end()
->arrayNode('query')
Expand Down

0 comments on commit 65d4c0d

Please sign in to comment.