Skip to content

Commit 16c8668

Browse files
committed
Update pushover user configuration
This is related to Seldaek/monolog@46cedf5. Using an array of users will need version 1.6+ of monolog.
1 parent 6282f81 commit 16c8668

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

DependencyInjection/Configuration.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,14 @@ public function getConfigTreeBuilder()
6969
->scalarNode('buffer_size')->defaultValue(0)->end() // fingers_crossed and buffer
7070
->scalarNode('handler')->end() // fingers_crossed and buffer
7171
->scalarNode('token')->end() // pushover
72-
->scalarNode('user')->end() // pushover
72+
->variableNode('user') // pushover
73+
->validate()
74+
->ifTrue(function($v) {
75+
return !is_string($v) && !is_array($v);
76+
})
77+
->thenInvalid('User must be a string or an array.')
78+
->end()
79+
->end()
7380
->scalarNode('title')->defaultNull()->end() // pushover
7481
->arrayNode('publisher')
7582
->canBeUnset()

0 commit comments

Comments
 (0)