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