Quantcast
Channel: Live News for Yii Framework
Viewing all articles
Browse latest Browse all 3361

[extension] ishukrullo/yii2-errorsender

$
0
0

Send exceptions to telegram user.

  1. Installation
  2. Usage

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',
        ],


Viewing all articles
Browse latest Browse all 3361

Trending Articles