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