mirror of
https://github.com/elyby/accounts.git
synced 2024-12-26 23:20:18 +05:30
19 lines
343 B
PHP
19 lines
343 B
PHP
|
<?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();
|
||
|
}
|
||
|
|
||
|
}
|