2016-01-02 19:13:18 +05:30
|
|
|
<?php
|
2016-05-30 05:14:17 +05:30
|
|
|
return [
|
|
|
|
'components' => [
|
|
|
|
'user' => [
|
|
|
|
'secret' => 'tests-secret-key',
|
|
|
|
],
|
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;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2016-05-30 05:14:17 +05:30
|
|
|
];
|