File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -36,19 +36,16 @@ public function getConfigTreeBuilder()
36
36
->cannotBeEmpty ()
37
37
->isRequired ()
38
38
->end ()
39
- ->scalarNode ('auth_method ' )
39
+ ->enumNode ('auth_method ' )
40
40
->defaultValue (Client::AUTH_HTTP_TOKEN )
41
- ->validate ()
42
- ->ifNotInArray (array (Client::AUTH_URL_TOKEN , Client::AUTH_HTTP_TOKEN ))
43
- ->thenInvalid ('Invalid Auhtmethod "%s" ' )
44
- ->end ()
41
+ ->values (array (Client::AUTH_URL_TOKEN , Client::AUTH_HTTP_TOKEN ))
45
42
->end ()
43
+ ->scalarNode ('sudo ' )->defaultValue (null )->end ()
46
44
->arrayNode ('options ' )
47
45
->addDefaultsIfNotSet ()
48
46
->children ()
49
- ->integerNode ('timeout ' )
50
- ->cannotBeEmpty ()
51
- ->defaultValue (60 )
47
+ ->integerNode ('timeout ' )->min (0 )->defaultValue (60 )->end ()
48
+ ->scalarNode ('user_agent ' )->defaultValue (null )
52
49
->end ()
53
50
->end ()
54
51
->end ()
You can’t perform that action at this time.
0 commit comments