Example #1
0
 /**
  * @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';
     }
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->db = Instance::ensure($this->db, Connection::className());
 }