CURL extension and api test command
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user