/** * 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(); }
/** * 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(); }