forked from wallabag/wallabag
User existing service instead of getDoctrine
This commit is contained in:
@ -67,7 +67,7 @@ class ShowUserCommand extends ContainerAwareCommand
|
||||
*/
|
||||
private function getUser($username)
|
||||
{
|
||||
return $this->getDoctrine()->getRepository('WallabagUserBundle:User')->findOneByUserName($username);
|
||||
return $this->get('wallabag_user.user_repository')->findOneByUserName($username);
|
||||
}
|
||||
|
||||
private function getDoctrine()
|
||||
|
||||
Reference in New Issue
Block a user