diff --git a/common/components/Sentry/Component.php b/common/components/Sentry/Component.php index ce0b1c5..6c44a46 100644 --- a/common/components/Sentry/Component.php +++ b/common/components/Sentry/Component.php @@ -8,6 +8,10 @@ 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; } diff --git a/composer.json b/composer.json index cbb7486..3faccdc 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "ely/amqp-controller": "dev-master#d7f8cdbc66c45e477c9c7d5d509bc0c1b11fd3ec", "ely/email-renderer": "dev-master#d66ec82d2ebae59986ad5e009ae0c951d1cfcccb", "predis/predis": "^1.0", - "mito/yii2-sentry": "dev-fix_init#27f00805cb906f73b2c6f8181c1c655decb9be70", + "mito/yii2-sentry": "^1.0", "minime/annotations": "~3.0", "spomky-labs/otphp": "^8.3", "bacon/bacon-qr-code": "^1.0" @@ -61,10 +61,6 @@ { "type": "git", "url": "git@gitlab.ely.by:elyby/oauth2-server.git" - }, - { - "type": "git", - "url": "git@github.com:erickskrauch/yii2-sentry.git" } ], "scripts": {