/** * Retrieve entry by url * * @param string $url * * @throws NotFoundHttpException * @return boolean */ protected function getEntry($url) { $this->entry = $this->entryRepository->findOneByUrl($url); if (!is_object($this->entry)) { throw new NotFoundHttpException(); } return true; }