for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created for IG Monitoring.
* User: jakim <[email protected]>
* Date: 11.01.2018
*/
namespace app\commands;
use app\models\Account;
use app\models\Proxy;
use app\models\Tag;
use yii\console\Controller;
use yii\console\ExitCode;
use yii\console\widgets\Table;
use yii\helpers\Console;
use yii\helpers\Inflector;
class MonitoringController extends Controller
{
public function actionIndex()
$this->actionAccounts();
$this->actionTags();
}
public function actionAccounts()
echo Table::widget([
'headers' => [
'ID',
'Username',
'Proxy ID',
],
'rows' => Account::find()
->select([
'id',
'username',
'proxy_id',
])
->monitoring()
->asArray()
->all(),
]);
public function actionTags()
'Tag',
'rows' => Tag::find()
'name',