This document will help you upgrading from a LUYA admin module version into another. For more detailed informations about the breaking changes click the issue detail link, there you can examples of how to change your code.
- module propertys
recipient
,slackToken
andslackChannel
has been removed. - Adapters replace the current default mail and slack properties, therefore configure a MailAdapter and/or a SlackAdapter.
Old config:
'errorapi' => [
'class' => 'luya\errorapi\Module',
'recipient' => ['[email protected]'],
'slackToken' => 'YOUR_SECRET_SLACK_TOKEN',
],
New config:
'errorapi' => [
'class' => 'luya\errorapi\Module',
'adapters' => [
[
'class' => 'luya\errorapi\adapters\MailAdapter',
'recipient' => ['[email protected]'],
],
[
'class' => 'luya\errorapi\adapters\SlackAdapter',
'token' => 'YOUR_SECRET_SLACK_TOKEN',
],
],
],