mirror of
https://github.com/elyby/accounts.git
synced 2024-12-25 06:39:46 +05:30
38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
|
return [
|
|
'components' => [
|
|
'user' => [
|
|
'secret' => 'tests-secret-key',
|
|
],
|
|
'reCaptcha' => [
|
|
'public' => 'public-key',
|
|
'secret' => 'private-key',
|
|
],
|
|
],
|
|
'params' => [
|
|
'authserverHost' => 'localhost',
|
|
],
|
|
'container' => [
|
|
'definitions' => [
|
|
api\components\ReCaptcha\Validator::class => function() {
|
|
return new class(new GuzzleHttp\Client()) extends api\components\ReCaptcha\Validator {
|
|
protected function validateValue($value) {
|
|
return null;
|
|
}
|
|
};
|
|
},
|
|
common\components\SkinSystem\Api::class => function() {
|
|
return new class extends common\components\SkinSystem\Api {
|
|
public function textures(string $username): ?array {
|
|
return [
|
|
'SKIN' => [
|
|
'url' => 'http://localhost/skin.png',
|
|
],
|
|
];
|
|
}
|
|
};
|
|
},
|
|
],
|
|
],
|
|
];
|