Exemplo n.º 1
0
 /**
  * Login (again).
  *
  * @param string $username
  * @param string $password
  * @param string $workspaceName
  */
 public function relogin($username, $password, $workspaceName = null)
 {
     if ($this->session) {
         $this->session->logout();
     }
     $this->profile->set('phpcr', 'username', $username);
     $this->profile->set('phpcr', 'password', $password);
     if ($workspaceName) {
         $this->profile->set('phpcr', 'workspace', $workspaceName);
     }
     $this->init();
 }