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:
		| @@ -1,11 +1,12 @@ | ||||
| <?php | ||||
| namespace common\components\Sentry; | ||||
| declare(strict_types=1); | ||||
| 
 | ||||
| namespace common\components; | ||||
| 
 | ||||
| use mito\sentry\Component; | ||||
| use Yii; | ||||
| 
 | ||||
| class Component extends \mito\sentry\Component { | ||||
| 
 | ||||
|     public $jsNotifier = false; | ||||
| class Sentry extends Component { | ||||
| 
 | ||||
|     public function init() { | ||||
|         if (!$this->enabled) { | ||||
| @@ -1,13 +1,13 @@ | ||||
| <?php | ||||
| declare(strict_types=1); | ||||
| 
 | ||||
| namespace common\components\SkinSystem; | ||||
| namespace common\components; | ||||
| 
 | ||||
| use GuzzleHttp\ClientInterface; | ||||
| use Yii; | ||||
| 
 | ||||
| // TODO: convert to complete Chrly client library
 | ||||
| class Api { | ||||
| class SkinsSystemApi { | ||||
| 
 | ||||
|     private const BASE_DOMAIN = 'http://skinsystem.ely.by'; | ||||
| 
 | ||||
| @@ -19,7 +19,7 @@ return [ | ||||
|         'definitions' => [ | ||||
|             GuzzleHttp\ClientInterface::class => GuzzleHttp\Client::class, | ||||
|             Ely\Mojang\Api::class => Ely\Mojang\Api::class, | ||||
|             common\components\SkinSystem\Api::class => common\components\SkinSystem\Api::class, | ||||
|             common\components\SkinsSystemApi::class => common\components\SkinsSystemApi::class, | ||||
|         ], | ||||
|     ], | ||||
|     'components' => [ | ||||
| @@ -68,7 +68,7 @@ return [ | ||||
|             ], | ||||
|         ], | ||||
|         'sentry' => [ | ||||
|             'class' => common\components\Sentry\Component::class, | ||||
|             'class' => common\components\Sentry::class, | ||||
|             'enabled' => !empty(getenv('SENTRY_DSN')), | ||||
|             'dsn' => getenv('SENTRY_DSN'), | ||||
|             'environment' => YII_ENV_DEV ? 'development' : 'production', | ||||
|   | ||||
| @@ -3,7 +3,7 @@ declare(strict_types=1); | ||||
|  | ||||
| namespace common\models; | ||||
|  | ||||
| use common\components\SkinSystem\Api as SkinSystemApi; | ||||
| use common\components\SkinsSystemApi as SkinSystemApi; | ||||
| use DateInterval; | ||||
| use DateTime; | ||||
| use GuzzleHttp\Exception\GuzzleException; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user