From b6e04fb2a26c193015d037f45f20fcaf99b6fb37 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sat, 15 Apr 2017 11:50:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D1=91?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D1=8C=20mito/yii2-sentry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/components/Sentry/Component.php | 4 ++++ composer.json | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) 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": {