@@ 104-123 (lines=20) @@ | ||
101 | } |
|
102 | } |
|
103 | ||
104 | if ( |
|
105 | isset($config['alerting']['hipchat']) && |
|
106 | !empty($config['alerting']['hipchat']) |
|
107 | ) { |
|
108 | $alert->addMethodCall( |
|
109 | 'addAlerter', |
|
110 | [new Reference('innmind_provisioner.alerter.hipchat')] |
|
111 | ); |
|
112 | ||
113 | $container |
|
114 | ->getDefinition('innmind_provisioner.alerter.hipchat.oauth') |
|
115 | ->replaceArgument(0, $config['alerting']['hipchat']['token']); |
|
116 | ||
117 | $container |
|
118 | ->getDefinition('innmind_provisioner.alerter.hipchat') |
|
119 | ->addMethodCall( |
|
120 | 'setRoom', |
|
121 | [$config['alerting']['hipchat']['room']] |
|
122 | ); |
|
123 | } |
|
124 | ||
125 | if ( |
|
126 | isset($config['alerting']['slack']) && |
|
@@ 125-144 (lines=20) @@ | ||
122 | ); |
|
123 | } |
|
124 | ||
125 | if ( |
|
126 | isset($config['alerting']['slack']) && |
|
127 | !empty($config['alerting']['slack']) |
|
128 | ) { |
|
129 | $alert->addMethodCall( |
|
130 | 'addAlerter', |
|
131 | [new Reference('innmind_provisioner.alerter.slack')] |
|
132 | ); |
|
133 | ||
134 | $container |
|
135 | ->getDefinition('innmind_provisioner.alerter.slack.commander') |
|
136 | ->replaceArgument(0, $config['alerting']['slack']['token']); |
|
137 | ||
138 | $container |
|
139 | ->getDefinition('innmind_provisioner.alerter.slack') |
|
140 | ->addMethodCall( |
|
141 | 'setChannel', |
|
142 | [$config['alerting']['slack']['channel']] |
|
143 | ); |
|
144 | } |
|
145 | } |
|
146 | } |
|
147 |