From 8e1e83ad67c2798fb2337d47d267362832eda30e Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 11 Jun 2017 22:09:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=B8=D0=BD=D1=8A=D0=B5=D0=BA=D1=86=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=B8,=20=D0=BF=D0=BE=D1=82=D0=B5=D1=80=D1=8F=D0=BD?= =?UTF-8?q?=D0=BD=D0=B0=D1=8F=20=D0=BF=D1=80=D0=B8=20=D0=BC=D0=B5=D1=80?= =?UTF-8?q?=D0=B6=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/config/config.php | 5 +++++ console/controllers/CleanupController.php | 5 +++++ 2 files changed, 10 insertions(+) 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'];