mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +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();
 | 
						|
    }
 | 
						|
 | 
						|
}
 |