CURL extension and api test command

This commit is contained in:
ftc
2023-05-18 22:15:55 +03:00
parent 696600086f
commit 4232800cb9
39 changed files with 13179 additions and 25 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
namespace app\commands;
use Yii;
use yii\console\Controller;
class TestController extends Controller
{
public function actionIndex()
{
$client = new \app\components\ApiClient(Yii::$app->params['apiEndpoint']);
print_r($client->getVersion());
}
}