2017 © Pedro Peláez
 

yii2-extension yii-gitlab-error-behavior

yii2 error behavior for gitlab

image

zacksleo/yii-gitlab-error-behavior

yii2 error behavior for gitlab

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 11 % Grown

The README.md

yii-gitlab-error-behavior

gitlab error behavior for yii1, (*1)

Latest Stable Version Total Downloads License, (*2)

Usage

Install By Composer

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

set component

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

set behavior in SiteController

set apiRoot, privateToken and projectName, (*3)

    public function behaviors()
    {
        return array(
            'error' => array(
                'class' => 'webroot.vendor.zacksleo.yii-gitlab-error-behavior.src.ErrorBehavior',
                'apiRoot' => 'http://gitlab.com/api/v3/',
                'privateToken' => '{privateToken}',
                'projectName' => '{demo/project}'
            )
        );
    }   

    public function onBeforeAction($event)
    {
        $this->raiseEvent('onBeforeAction', $event);
    }    


    public function actionError()
    {
        if ($error = Yii::app()->errorHandler->error) {
            $this->onBeforeAction(new CEvent($this));            
            $this->renderPartial('error', $error);            
        }
    }

Screenshoot

, (*4)

The Versions

29/04 2017

dev-master

9999999-dev

yii2 error behavior for gitlab

  Sources   Download

MIT

The Requires

 

29/04 2017

1.0.6

1.0.6.0

yii2 error behavior for gitlab

  Sources   Download

MIT

The Requires

 

29/04 2017

1.0.5

1.0.5.0

yii2 error behavior for gitlab

  Sources   Download

MIT

The Requires

 

24/04 2017

1.0.4

1.0.4.0

yii2 error behavior for gitlab

  Sources   Download

MIT

The Requires

 

19/04 2017

1.0.3

1.0.3.0

yii2 error behavior for gitlab

  Sources   Download

MIT

The Requires

 

09/04 2017

1.0.2

1.0.2.0

yii2 error behavior for gitlab

  Sources   Download

MIT

The Requires

 

30/03 2017

1.0.1

1.0.1.0

yii2 error behavior for gitlab

  Sources   Download

MIT

The Requires