public function loadState(array $params) { parent::loadState($params); if (isset($params['key'])) { $this->resetUser = $this->userRepository->findOneBy(array('resetKey' => $params['key'])); if ($this->resetUser === null) { $this->onError($this, new ResetKeyNotFoundException()); } } }
public function loadState(array $params) { if (isset($params['dirId'])) { $this->dir = $this->dirRepository->find($params['dirId']); } elseif ($this->root) { $this->dir = $this->root; } if (isset($params['fileId'])) { $this->file = $this->fileRepository->find($params['fileId']); $this->dir = $this->file->getParent(); } parent::loadState($params); }
/** * @param mixed[] $params */ public function loadState(array $params) { $this->sideComponent = array_key_exists('sideComponent', $params) ? $params['sideComponent'] : $this->sessionSection->sideComponent; parent::loadState($params); }