@@ -124,15 +124,23 @@ protected function configurePlugins(ArrayNodeDefinition $root)
124
124
->arrayNode ('authentication ' )
125
125
->canBeEnabled ()
126
126
->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 ()
128
132
->end ()
129
133
->end () // End authentication plugin
130
134
131
135
->arrayNode ('cache ' )
132
136
->canBeEnabled ()
133
137
->addDefaultsIfNotSet ()
134
138
->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 ()
136
144
->scalarNode ('stream_factory ' )->cannotBeEmpty ()->defaultValue ('httplug.stream_factory ' )->end ()
137
145
->arrayNode ('config ' )
138
146
->children ()
@@ -146,7 +154,11 @@ protected function configurePlugins(ArrayNodeDefinition $root)
146
154
->arrayNode ('cookie ' )
147
155
->canBeEnabled ()
148
156
->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 ()
150
162
->end ()
151
163
->end () // End cookie plugin
152
164
@@ -161,16 +173,27 @@ protected function configurePlugins(ArrayNodeDefinition $root)
161
173
->arrayNode ('history ' )
162
174
->canBeEnabled ()
163
175
->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 ()
165
181
->end ()
166
182
->end () // End history plugin
167
183
168
184
->arrayNode ('logger ' )
169
185
->canBeDisabled ()
170
186
->addDefaultsIfNotSet ()
171
187
->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 ()
174
197
->end ()
175
198
->end () // End logger plugin
176
199
@@ -195,7 +218,11 @@ protected function configurePlugins(ArrayNodeDefinition $root)
195
218
->canBeDisabled ()
196
219
->addDefaultsIfNotSet ()
197
220
->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 ()
199
226
->end ()
200
227
->end () // End stopwatch plugin
201
228
0 commit comments