From 2a371a32ead23cb494541302889eeadb4e461e4b Mon Sep 17 00:00:00 2001 From: Jarrod Butcher Date: Tue, 20 Feb 2018 08:17:20 -0500 Subject: [PATCH] Add auth configuration to v6 branch in configuration --- DependencyInjection/Configuration.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 9a183a8..ac12535 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -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')