@@ -124,15 +124,23 @@ protected function configurePlugins(ArrayNodeDefinition $root)
124124 ->arrayNode ('authentication ' )
125125 ->canBeEnabled ()
126126 ->children ()
127- ->scalarNode ('authentication ' )->isRequired ()->cannotBeEmpty ()->end ()
127+ ->scalarNode ('authentication ' )
128+ ->info ('This must be a service id to a service implementing Http\Message\Authentication ' )
129+ ->isRequired ()
130+ ->cannotBeEmpty ()
131+ ->end ()
128132 ->end ()
129133 ->end () // End authentication plugin
130134
131135 ->arrayNode ('cache ' )
132136 ->canBeEnabled ()
133137 ->addDefaultsIfNotSet ()
134138 ->children ()
135- ->scalarNode ('cache_pool ' )->isRequired ()->cannotBeEmpty ()->end ()
139+ ->scalarNode ('cache_pool ' )
140+ ->info ('This must be a service id to a service implementing Psr\Cache\CacheItemPoolInterface ' )
141+ ->isRequired ()
142+ ->cannotBeEmpty ()
143+ ->end ()
136144 ->scalarNode ('stream_factory ' )->cannotBeEmpty ()->defaultValue ('httplug.stream_factory ' )->end ()
137145 ->arrayNode ('config ' )
138146 ->children ()
@@ -146,7 +154,11 @@ protected function configurePlugins(ArrayNodeDefinition $root)
146154 ->arrayNode ('cookie ' )
147155 ->canBeEnabled ()
148156 ->children ()
149- ->scalarNode ('cookie_jar ' )->isRequired ()->cannotBeEmpty ()->end ()
157+ ->scalarNode ('cookie_jar ' )
158+ ->info ('This must be a service id to a service implementing Http\Message\CookieJar ' )
159+ ->isRequired ()
160+ ->cannotBeEmpty ()
161+ ->end ()
150162 ->end ()
151163 ->end () // End cookie plugin
152164
@@ -161,16 +173,27 @@ protected function configurePlugins(ArrayNodeDefinition $root)
161173 ->arrayNode ('history ' )
162174 ->canBeEnabled ()
163175 ->children ()
164- ->scalarNode ('journal ' )->isRequired ()->cannotBeEmpty ()->end ()
176+ ->scalarNode ('journal ' )
177+ ->info ('This must be a service id to a service implementing Http\Client\Plugin\Journal ' )
178+ ->isRequired ()
179+ ->cannotBeEmpty ()
180+ ->end ()
165181 ->end ()
166182 ->end () // End history plugin
167183
168184 ->arrayNode ('logger ' )
169185 ->canBeDisabled ()
170186 ->addDefaultsIfNotSet ()
171187 ->children ()
172- ->scalarNode ('logger ' )->defaultValue ('logger ' )->cannotBeEmpty ()->end ()
173- ->scalarNode ('formatter ' )->defaultNull ()->end ()
188+ ->scalarNode ('logger ' )
189+ ->info ('This must be a service id to a service implementing Psr\Log\LoggerInterface ' )
190+ ->defaultValue ('logger ' )
191+ ->cannotBeEmpty ()
192+ ->end ()
193+ ->scalarNode ('formatter ' )
194+ ->info ('This must be a service id to a service implementing Http\Message\Formatter ' )
195+ ->defaultNull ()
196+ ->end ()
174197 ->end ()
175198 ->end () // End logger plugin
176199
@@ -195,7 +218,11 @@ protected function configurePlugins(ArrayNodeDefinition $root)
195218 ->canBeDisabled ()
196219 ->addDefaultsIfNotSet ()
197220 ->children ()
198- ->scalarNode ('stopwatch ' )->defaultValue ('debug.stopwatch ' )->cannotBeEmpty ()->end ()
221+ ->scalarNode ('stopwatch ' )
222+ ->info ('This must be a service id to a service extending Symfony\Component\Stopwatch\Stopwatch ' )
223+ ->defaultValue ('debug.stopwatch ' )
224+ ->cannotBeEmpty ()
225+ ->end ()
199226 ->end ()
200227 ->end () // End stopwatch plugin
201228
0 commit comments