diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/SiteCredentialController.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php b/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php index 429f529a..dc8e723d 100644 --- a/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php +++ b/src/Wallabag/CoreBundle/Controller/SiteCredentialController.php | |||
@@ -24,9 +24,7 @@ class SiteCredentialController extends Controller | |||
24 | */ | 24 | */ |
25 | public function indexAction() | 25 | public function indexAction() |
26 | { | 26 | { |
27 | $em = $this->getDoctrine()->getManager(); | 27 | $credentials = $this->get('wallabag_core.site_credential_repository')->findByUser($this->getUser()); |
28 | |||
29 | $credentials = $em->getRepository('WallabagCoreBundle:SiteCredential')->findByUser($this->getUser()); | ||
30 | 28 | ||
31 | return $this->render('WallabagCoreBundle:SiteCredential:index.html.twig', array( | 29 | return $this->render('WallabagCoreBundle:SiteCredential:index.html.twig', array( |
32 | 'credentials' => $credentials, | 30 | 'credentials' => $credentials, |