16 lines
271 B
PHP
16 lines
271 B
PHP
<?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());
|
|
}
|
|
}
|