for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace app\controllers;
use Yii;
/**
* SetupController allows to setup the site and database.
*/
class SetupController extends BaseController
{
* Run migrations.
*
* @return \yii\web\Response
public function actionIndex()
Yii::$app->runAction('migrate', ['interactive' => false]);
return $this->goHome();
}