2016-01-02 19:13:18 +05:30
|
|
|
<?php
|
2017-05-18 04:39:26 +05:30
|
|
|
use api\components\ReCaptcha\Validator;
|
|
|
|
use GuzzleHttp\Client;
|
|
|
|
|
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-19 03:46:07 +05:30
|
|
|
'modules' => [
|
|
|
|
'authserver' => [
|
2016-09-21 13:43:43 +05:30
|
|
|
'host' => 'localhost',
|
2016-09-19 03:46:07 +05:30
|
|
|
],
|
|
|
|
],
|
2016-09-08 21:36:44 +05:30
|
|
|
'params' => [
|
2016-09-19 03:31:19 +05:30
|
|
|
'authserverHost' => 'authserver.ely.by',
|
2016-09-08 21:36:44 +05:30
|
|
|
],
|
2017-05-18 04:39:26 +05:30
|
|
|
'container' => [
|
|
|
|
'definitions' => [
|
|
|
|
Validator::class => function() {
|
|
|
|
return new class(new Client()) extends Validator {
|
|
|
|
protected function validateValue($value) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2016-05-30 05:14:17 +05:30
|
|
|
];
|