/** * @inheritdoc */ public function init() { if ($this->url === null) { throw new InvalidConfigException('The "url" attribute must be set.'); } else { $this->options['url'] = $this->url; } if ($this->path === null) { throw new InvalidConfigException('The "path" attribute must be set.'); } else { $this->path = FileHelper::normalizePath(Yii::getAlias($this->path)); } }
public function getPath() { return FileHelper::normalizePath(Yii::getAlias(Yii::$app->getModule('filesystem')->uploadPath . $this->subdir . '/' . $this->file_name)); }