X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FCommand%2FShowUserCommand.php;h=4511c235496c4710e00bc62bc07143b9ecab9d30;hb=e56f82142ac890c916b74700087424017bb2acf9;hp=0eeaabc443867b8a085a9a0df41930cfb5665f12;hpb=4e4a5b534ff241f25c35fad24c9c79eb12f4adde;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Command/ShowUserCommand.php b/src/Wallabag/CoreBundle/Command/ShowUserCommand.php index 0eeaabc4..4511c235 100644 --- a/src/Wallabag/CoreBundle/Command/ShowUserCommand.php +++ b/src/Wallabag/CoreBundle/Command/ShowUserCommand.php @@ -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); } }