Добавлен проброс версии приложения в конфиг Raven

This commit is contained in:
ErickSkrauch
2016-12-07 23:51:01 +03:00
parent 8570cfcbfa
commit c99d5c6b1c
3 changed files with 21 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace common\components\Sentry;
use Yii;
class Component extends \mito\sentry\Component {
public $jsNotifier = false;
public function init() {
if (is_array($this->client) && !isset($this->client['release'])) {
$this->client['release'] = Yii::$app->version;
}
parent::init();
}
}