2016-01-02 19:13:18 +05:30
|
|
|
<?php
|
2016-05-30 05:14:17 +05:30
|
|
|
return [
|
|
|
|
'components' => [
|
2019-08-01 14:47:12 +05:30
|
|
|
'tokens' => [
|
|
|
|
'hmacKey' => 'tests-secret-key',
|
|
|
|
'privateKeyPath' => codecept_data_dir('certs/private.pem'),
|
|
|
|
'privateKeyPass' => null,
|
|
|
|
'publicKeyPath' => codecept_data_dir('certs/public.pem'),
|
2019-12-05 22:07:46 +05:30
|
|
|
'encryptionKey' => 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
|
2016-05-30 05:14:17 +05:30
|
|
|
],
|
2016-08-03 18:26:08 +05:30
|
|
|
'reCaptcha' => [
|
|
|
|
'public' => 'public-key',
|
|
|
|
'secret' => 'private-key',
|
|
|
|
],
|
2016-05-30 05:14:17 +05:30
|
|
|
],
|
2016-09-08 21:36:44 +05:30
|
|
|
'params' => [
|
2019-02-21 01:28:52 +05:30
|
|
|
'authserverHost' => 'localhost',
|
2016-09-08 21:36:44 +05:30
|
|
|
],
|
2017-05-18 04:39:26 +05:30
|
|
|
'container' => [
|
|
|
|
'definitions' => [
|
2019-02-21 01:28:52 +05:30
|
|
|
api\components\ReCaptcha\Validator::class => function() {
|
|
|
|
return new class(new GuzzleHttp\Client()) extends api\components\ReCaptcha\Validator {
|
2017-05-18 04:39:26 +05:30
|
|
|
protected function validateValue($value) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
2019-05-13 22:09:11 +05:30
|
|
|
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',
|
|
|
|
],
|
|
|
|
];
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
2017-05-18 04:39:26 +05:30
|
|
|
],
|
|
|
|
],
|
2016-05-30 05:14:17 +05:30
|
|
|
];
|