send error to gitlab for yii
composer require zacksleo/yii2-gitlab-error-behavior --prefer-dist
'errorHandler' => [
'errorAction' => 'site/error',
],
set apiRoot, privateToken and projectName
public function behaviors()
{
return [
'behaviors' => [
'class' => ErrorBehavior::className(),
'apiRoot' => 'http://gitlab.com/api/v3/',
'privateToken' => 'privateToken',
'projectName' => 'demo/project'
]
];
}