mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 09:06:10 +02:00
Format constructors on a single line
This is for consistency with the rest of the handlers.
This commit is contained in:
@@ -46,17 +46,8 @@ class SlackWebhookHandler extends AbstractProcessingHandler
|
|||||||
* @param int $level The minimum logging level at which this handler will be triggered
|
* @param int $level The minimum logging level at which this handler will be triggered
|
||||||
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
|
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct($webhookUrl, $channel = null, $username = 'Monolog', $useAttachment = true, $iconEmoji = null, $useShortAttachment = false, $includeContextAndExtra = false, $level = Logger::CRITICAL, $bubble = true)
|
||||||
$webhookUrl,
|
{
|
||||||
$channel = null,
|
|
||||||
$username = 'Monolog',
|
|
||||||
$useAttachment = true,
|
|
||||||
$iconEmoji = null,
|
|
||||||
$useShortAttachment = false,
|
|
||||||
$includeContextAndExtra = false,
|
|
||||||
$level = Logger::CRITICAL,
|
|
||||||
$bubble = true
|
|
||||||
) {
|
|
||||||
parent::__construct($level, $bubble);
|
parent::__construct($level, $bubble);
|
||||||
|
|
||||||
$this->webhookUrl = $webhookUrl;
|
$this->webhookUrl = $webhookUrl;
|
||||||
|
@@ -46,13 +46,8 @@ class SlackbotHandler extends AbstractProcessingHandler
|
|||||||
* @param int $level The minimum logging level at which this handler will be triggered
|
* @param int $level The minimum logging level at which this handler will be triggered
|
||||||
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
|
* @param bool $bubble Whether the messages that are handled can bubble up the stack or not
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct($slackTeam, $token, $channel, $level = Logger::CRITICAL, $bubble = true)
|
||||||
$slackTeam,
|
{
|
||||||
$token,
|
|
||||||
$channel,
|
|
||||||
$level = Logger::CRITICAL,
|
|
||||||
$bubble = true
|
|
||||||
) {
|
|
||||||
parent::__construct($level, $bubble);
|
parent::__construct($level, $bubble);
|
||||||
|
|
||||||
$this->slackTeam = $slackTeam;
|
$this->slackTeam = $slackTeam;
|
||||||
|
Reference in New Issue
Block a user