mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Remove usage of codeception/specify and fzaninotto/faker
This commit is contained in:
23
common/components/Sentry.php
Normal file
23
common/components/Sentry.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user