Esempio n. 1
0
 /**
  * Runs the action
  *
  * @param array $config
  * @return mixed The result of the action
  */
 protected function runAction($config)
 {
     $action = new UploadAction('upload', new Controller('test', Yii::$app), $config);
     return $action->run();
 }
Esempio n. 2
0
 /**
  * Runs the upload action
  *
  * @param array $config
  * @return mixed The result of the action
  */
 public function runUploadAction($config)
 {
     $this->createTmpFile($config['inputName']);
     $action = new UploadAction('upload', new Controller('test', Yii::$app), $config);
     return $action->run();
 }