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
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-11-08 07:39:35 UTC
README
send error to gitlab for yii
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'
]
];
}