We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1eaa2e commit f669c95Copy full SHA for f669c95
DependencyInjection/Configuration.php
@@ -392,6 +392,10 @@ public function getConfigTreeBuilder()
392
->end()
393
->scalarNode('formatter')->end()
394
395
+ ->validate()
396
+ ->ifTrue(function($v) { return 'service' === $v['type'] && !empty($v['formatter']); })
397
+ ->thenInvalid('Service handlers can not have a formatter configured in the bundle, you must reconfigure the service itself instead')
398
+ ->end()
399
->validate()
400
->ifTrue(function($v) { return ('fingers_crossed' === $v['type'] || 'buffer' === $v['type']) && 1 !== count($v['handler']); })
401
->thenInvalid('The handler has to be specified to use a FingersCrossedHandler or BufferHandler')
0 commit comments