|
201 | 201 | * - [level]: level name or int value, defaults to DEBUG |
202 | 202 | * - [bubble]: bool, defaults to true |
203 | 203 | * |
| 204 | + * - flowdock: |
| 205 | + * - token: flowdock api token |
| 206 | + * - source: human readable identifier of the application |
| 207 | + * - from_email: email address of the message sender |
| 208 | + * - [level]: level name or int value, defaults to DEBUG |
| 209 | + * - [bubble]: bool, defaults to true |
| 210 | + * |
204 | 211 | * @author Jordi Boggiano <[email protected]> |
205 | 212 | * @author Christophe Coevoet <[email protected]> |
206 | 213 | */ |
@@ -273,7 +280,8 @@ public function getConfigTreeBuilder() |
273 | 280 | ->scalarNode('room')->end() // hipchat |
274 | 281 | ->scalarNode('notify')->defaultFalse()->end() // hipchat |
275 | 282 | ->scalarNode('nickname')->defaultValue('Monolog')->end() // hipchat |
276 | | - ->scalarNode('token')->end() // pushover & hipchat & loggly & logentries |
| 283 | + ->scalarNode('token')->end() // pushover & hipchat & loggly & logentries & flowdock |
| 284 | + ->scalarNode('source')->end() // flowdock |
277 | 285 | ->booleanNode('use_ssl')->defaultTrue()->end() // logentries |
278 | 286 | ->variableNode('user') // pushover |
279 | 287 | ->validate() |
@@ -338,7 +346,7 @@ public function getConfigTreeBuilder() |
338 | 346 | ->performNoDeepMerging() |
339 | 347 | ->prototype('scalar')->end() |
340 | 348 | ->end() |
341 | | - ->scalarNode('from_email')->end() // swift_mailer and native_mailer |
| 349 | + ->scalarNode('from_email')->end() // swift_mailer, native_mailer and flowdock |
342 | 350 | ->arrayNode('to_email') // swift_mailer and native_mailer |
343 | 351 | ->prototype('scalar')->end() |
344 | 352 | ->beforeNormalization() |
@@ -577,6 +585,18 @@ public function getConfigTreeBuilder() |
577 | 585 | ->ifTrue(function ($v) { return 'logentries' === $v['type'] && empty($v['token']); }) |
578 | 586 | ->thenInvalid('The token has to be specified to use a LogEntriesHandler') |
579 | 587 | ->end() |
| 588 | + ->validate() |
| 589 | + ->ifTrue(function ($v) { return 'flowdock' === $v['type'] && empty($v['token']); }) |
| 590 | + ->thenInvalid('The token has to be specified to use a FlowdockHandler') |
| 591 | + ->end() |
| 592 | + ->validate() |
| 593 | + ->ifTrue(function ($v) { return 'flowdock' === $v['type'] && empty($v['from_email']); }) |
| 594 | + ->thenInvalid('The from_email has to be specified to use a FlowdockHandler') |
| 595 | + ->end() |
| 596 | + ->validate() |
| 597 | + ->ifTrue(function ($v) { return 'flowdock' === $v['type'] && empty($v['source']); }) |
| 598 | + ->thenInvalid('The source has to be specified to use a FlowdockHandler') |
| 599 | + ->end() |
580 | 600 | ->end() |
581 | 601 | ->validate() |
582 | 602 | ->ifTrue(function ($v) { return isset($v['debug']); }) |
|
0 commit comments