Skip to content

v1.2.0

Compare
Choose a tag to compare
@gmponos gmponos released this 04 Dec 19:57
· 21 commits to master since this release

Deprecated

  • Deprecated the custom clients that implement Webthink\MonologSlack\Utility\ClientInterface. Use a PSR-18 instead.
  • Passing $username as argument to SlackWebhookHandler is deprecated and it will be removed on 2.x. Instead initialize
    your own own formatter and set it to the handler.
  • Passing $useCustomEmoji as argument to SlackWebhookHandler is deprecated and it will be removed on 2.x. Instead initialize
    your own own formatter and set it to the handler.

Changes

  • Allow the constructor of SlackWebhookHandler to pass as level string|int. Before it was only int.
  • Allow the constructor of SlackWebhookHandler to pass a PSR-18 HTTP client.
  • Use as default HTTP client an adapter of php-http/guzzle6-adapter instead of guzzle client.
  • Added in SlackLineFormatter a third parameter to allow passing a custom format of the text.
  • Removed from the default format of SlackLineFormatter the date since it is recorded on slack when the message is sent.