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