Author: Tobias Munk (schmunk@usrbin.de)
Inheritance: extends yii\console\Controller
Exemplo n.º 1
0
 /**
  * @return array
  */
 protected function getYiiConfiguration()
 {
     if (YII_ENV == 'test') {
         return ['basePath' => \Yii::getAlias('@tests')];
     }
     return parent::getYiiConfiguration();
 }
Exemplo n.º 2
0
 public function beforeAction($action)
 {
     \Yii::$app->controller->module = \Yii::$app->getModule('gii');
     return parent::beforeAction($action);
 }