/** * @inheritdoc */ public function init() { parent::init(); $this->ssh = Instance::ensure($this->ssh, Connection::className()); if ($this->basePath === null) { $this->basePath = '/home/' . $this->ssh->username . '/files'; } }
/** * @inheritdoc */ public function init() { parent::init(); $this->db = Instance::ensure($this->db, Connection::className()); }