ishukrullo/yii2-errorsender

On Exception, sends exception title and content to set user.

v1.2.3 2021-05-24 07:17 UTC

This package is auto-updated.

Last update: 2023-09-24 12:12:29 UTC


README

On Exception, sends exception title and content to set telegram user. To get errors, first you need to hit start on bot ErrorGetterBot Installation

The preferred way to install this extension is through composer.

Either run

composer require  ishukrullo/yii2-errorsender v1.2.1

or add

"ishukrullo/yii2-errorsender": "^v1.2.1"

to the require section of your composer.json file.

Usage

Once the extension is installed, add custom errorHandler class to component section of your configuration file (config/main.php):

        'errorHandler' => [
            'class' => 'ishukrullo\errorsender\ErrorSendToTelegram',
            'userId' => '460314569', // telegram user's id (don't forget to start the @ErrorGetterBot)
            'errorAction' => 'site/error',
        ],