zacksleo/yii2-gitlab-error-behavior

yii2 error behavior for gitlab

Installs: 11 011

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 1

Open Issues: 0

Type:yii2-extension

1.0.2 2017-04-19 07:07 UTC

This package is auto-updated.

Last update: 2024-11-08 07:39:35 UTC


README

send error to gitlab for yii

Latest Stable Version Total Downloads StyleCI Build Status Scrutinizer Code Quality Code Coverage Code Climate Build Status

Usage

Install By Composer

  composer require zacksleo/yii2-gitlab-error-behavior --prefer-dist 
  

set component

    'errorHandler' => [
        'errorAction' => 'site/error',
    ],

set behavior in SiteController

set apiRoot, privateToken and projectName

    public function behaviors()
    {
        return [
            'behaviors' => [
                'class' => ErrorBehavior::className(),
                'apiRoot' => 'http://gitlab.com/api/v3/',
                'privateToken' => 'privateToken',
                'projectName' => 'demo/project'
            ]
        ];
    }
    

Screenshot