コード例 #1
0
ファイル: NativeShare.php プロジェクト: isklv/smb-bundle
 /**
  * @throws \SMBBundle\SMB\Exception\ConnectionException
  * @throws \SMBBundle\SMB\Exception\AuthenticationException
  * @throws \SMBBundle\SMB\Exception\InvalidHostException
  */
 protected function connect()
 {
     if ($this->state and $this->state instanceof NativeShare) {
         return;
     }
     $this->state->init($this->server->getWorkgroup(), $this->server->getUser(), $this->server->getPassword());
 }
コード例 #2
0
ファイル: NativeServer.php プロジェクト: isklv/smb-bundle
 protected function connect()
 {
     $this->state->init($this->getWorkgroup(), $this->getUser(), $this->getPassword());
 }