diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/SiteCredentialController.php | 4 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilder.php | 5 |
2 files changed, 3 insertions, 6 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, |
diff --git a/src/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilder.php b/src/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilder.php index ae69492d..62a3bc13 100644 --- a/src/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilder.php +++ b/src/Wallabag/CoreBundle/GuzzleSiteAuthenticator/GrabySiteConfigBuilder.php | |||
@@ -31,14 +31,13 @@ class GrabySiteConfigBuilder implements SiteConfigBuilder | |||
31 | */ | 31 | */ |
32 | private $currentUser; | 32 | private $currentUser; |
33 | 33 | ||
34 | |||
35 | /** | 34 | /** |
36 | * GrabySiteConfigBuilder constructor. | 35 | * GrabySiteConfigBuilder constructor. |
37 | * | 36 | * |
38 | * @param ConfigBuilder $grabyConfigBuilder | 37 | * @param ConfigBuilder $grabyConfigBuilder |
39 | * @param TokenStorage $token | 38 | * @param TokenStorage $token |
40 | * @param SiteCredentialRepository $credentialRepository | 39 | * @param SiteCredentialRepository $credentialRepository |
41 | * @param LoggerInterface $logger | 40 | * @param LoggerInterface $logger |
42 | */ | 41 | */ |
43 | public function __construct(ConfigBuilder $grabyConfigBuilder, TokenStorage $token, SiteCredentialRepository $credentialRepository, LoggerInterface $logger) | 42 | public function __construct(ConfigBuilder $grabyConfigBuilder, TokenStorage $token, SiteCredentialRepository $credentialRepository, LoggerInterface $logger) |
44 | { | 43 | { |