Exemplo n.º 1
0
 /**
  * @param IUserIdentity $identity
  * @param int           $duration
  * @return bool
  */
 public function login($identity, $duration = 0)
 {
     $this->setState("__branchId", $identity->getBranchId());
     $this->setState("__scope", $identity->getScope());
     $this->setState("__roles", $identity->getRoles());
     $this->setState("__userData", $identity->getUserData());
     return parent::login($identity, $duration);
 }