1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-22 17:18:37 +00:00

User existing service instead of getDoctrine

This commit is contained in:
Jeremy Benoist 2017-06-10 12:33:58 +02:00
parent 80784b782b
commit 25203e5081
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
8 changed files with 32 additions and 37 deletions

View file

@ -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()