mirror of
https://github.com/elyby/accounts.git
synced 2024-11-10 07:22:00 +05:30
23 lines
405 B
PHP
23 lines
405 B
PHP
<?php
|
|
namespace common\components\Sentry;
|
|
|
|
use Yii;
|
|
|
|
class Component extends \mito\sentry\Component {
|
|
|
|
public $jsNotifier = false;
|
|
|
|
public function init() {
|
|
if (!$this->enabled) {
|
|
return;
|
|
}
|
|
|
|
if (is_array($this->client) && !isset($this->client['release'])) {
|
|
$this->client['release'] = Yii::$app->version;
|
|
}
|
|
|
|
parent::init();
|
|
}
|
|
|
|
}
|