mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Добавлен проброс версии приложения в конфиг Raven
This commit is contained in:
18
common/components/Sentry/Component.php
Normal file
18
common/components/Sentry/Component.php
Normal 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();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user