diff --git a/common/config/config.php b/common/config/config.php index 8c20948..9d10651 100644 --- a/common/config/config.php +++ b/common/config/config.php @@ -79,6 +79,11 @@ return [ ], ], ], + 'container' => [ + 'definitions' => [ + GuzzleHttp\ClientInterface::class => GuzzleHttp\Client::class, + ], + ], 'aliases' => [ '@bower' => '@vendor/bower-asset', '@npm' => '@vendor/npm-asset', diff --git a/console/controllers/CleanupController.php b/console/controllers/CleanupController.php index 9284479..6e47ad4 100644 --- a/console/controllers/CleanupController.php +++ b/console/controllers/CleanupController.php @@ -6,6 +6,11 @@ use yii\console\Controller; class CleanupController extends Controller { + public function actionTest() { + $validator = \Yii::createObject(\api\components\ReCaptcha\Validator::class); + var_dump($validator); + } + public function actionEmailKeys() { $query = EmailActivation::find(); $conditions = ['OR'];