mirror of
https://github.com/elyby/accounts.git
synced 2025-01-11 06:22:16 +05:30
Remove usage of codeception/specify and fzaninotto/faker
This commit is contained in:
parent
43a4a58053
commit
7607248c27
@ -25,8 +25,8 @@ return [
|
||||
}
|
||||
};
|
||||
},
|
||||
common\components\SkinSystem\Api::class => function() {
|
||||
return new class extends common\components\SkinSystem\Api {
|
||||
common\components\SkinsSystemApi::class => function() {
|
||||
return new class extends common\components\SkinsSystemApi {
|
||||
public function textures(string $username): ?array {
|
||||
return [
|
||||
'SKIN' => [
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user