Skip to content

Commit 32de375

Browse files
committed
bug #208 Slackbot handler does not work with BC
1 parent db32de0 commit 32de375

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

DependencyInjection/Configuration.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
* - [bubble]: bool, defaults to true
220220
*
221221
* - slackbot:
222-
* - slack_team: slack team slug
222+
* - team: slack team slug
223223
* - token: slackbot token
224224
* - channel: channel name (with starting #)
225225
* - [level]: level name or int value, defaults to DEBUG
@@ -380,7 +380,7 @@ public function getConfigTreeBuilder()
380380
->scalarNode('include_extra')->defaultFalse()->end() // slack & slackwebhook
381381
->scalarNode('icon_emoji')->defaultNull()->end() // slack & slackwebhook
382382
->scalarNode('webhook_url')->end() // slackwebhook
383-
->scalarNode('slack_team')->end() // slackbot
383+
->scalarNode('team')->end() // slackbot
384384
->scalarNode('notify')->defaultFalse()->end() // hipchat
385385
->scalarNode('nickname')->defaultValue('Monolog')->end() // hipchat
386386
->scalarNode('token')->end() // pushover & hipchat & loggly & logentries & flowdock & rollbar & slack & slackbot
@@ -721,8 +721,8 @@ public function getConfigTreeBuilder()
721721
->thenInvalid('The webhook_url have to be specified to use a SlackWebhookHandler')
722722
->end()
723723
->validate()
724-
->ifTrue(function ($v) { return 'slackbot' === $v['type'] && (empty($v['slack_team']) || empty($v['token']) || empty($v['channel'])); })
725-
->thenInvalid('The slack_team, token and channel have to be specified to use a SlackbotHandler')
724+
->ifTrue(function ($v) { return 'slackbot' === $v['type'] && (empty($v['team']) || empty($v['token']) || empty($v['channel'])); })
725+
->thenInvalid('The team, token and channel have to be specified to use a SlackbotHandler')
726726
->end()
727727
->validate()
728728
->ifTrue(function ($v) { return 'cube' === $v['type'] && empty($v['url']); })

DependencyInjection/MonologExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
550550

551551
case 'slackbot':
552552
$definition->setArguments(array(
553-
$handler['slack_team'],
553+
$handler['team'],
554554
$handler['token'],
555555
urlencode($handler['channel']),
556556
$handler['level'],

0 commit comments

Comments
 (0)