mirror of
https://github.com/elyby/accounts.git
synced 2024-11-11 07:52:14 +05:30
42 lines
1.4 KiB
PHP
42 lines
1.4 KiB
PHP
<?php
|
|
return [
|
|
'components' => [
|
|
'tokens' => [
|
|
'hmacKey' => 'tests-secret-key',
|
|
'privateKeyPath' => codecept_data_dir('certs/private.pem'),
|
|
'privateKeyPass' => null,
|
|
'publicKeyPath' => codecept_data_dir('certs/public.pem'),
|
|
'encryptionKey' => 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
|
|
],
|
|
'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\SkinsSystemApi::class => function() {
|
|
return new class extends common\components\SkinsSystemApi {
|
|
public function textures(string $username): ?array {
|
|
return [
|
|
'SKIN' => [
|
|
'url' => 'http://localhost/skin.png',
|
|
],
|
|
];
|
|
}
|
|
};
|
|
},
|
|
],
|
|
],
|
|
];
|