- /**
- * Fetches a user from its username.
- *
- * @param string $username
- *
- * @return \Wallabag\UserBundle\Entity\User
- */
- private function getUser($username)
- {
- return $this->getDoctrine()->getRepository('WallabagUserBundle:User')->findOneByUserName($username);
- }