]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Command/ShowUserCommand.php
Merge pull request #3292 from nclsHart/remove-getdoctrine
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Command / ShowUserCommand.php
index 0eeaabc443867b8a085a9a0df41930cfb5665f12..4511c235496c4710e00bc62bc07143b9ecab9d30 100644 (file)
@@ -67,11 +67,6 @@ class ShowUserCommand extends ContainerAwareCommand
      */
     private function getUser($username)
     {
-        return $this->getDoctrine()->getRepository('WallabagUserBundle:User')->findOneByUserName($username);
-    }
-
-    private function getDoctrine()
-    {
-        return $this->getContainer()->get('doctrine');
+        return $this->getContainer()->get('wallabag_user.user_repository')->findOneByUserName($username);
     }
 }