aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-01-17 12:52:30 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-01-17 12:56:04 +0100
commite678c4752a35b06c0a77d17fc23aa2de6abc4e18 (patch)
tree0a3ef880443999636585dd17ff1f6147541b44ff /src/Wallabag/CoreBundle/Repository/EntryRepository.php
parent3bcc4d4cb29abeedb48b1f297f1a65a02998ff69 (diff)
downloadwallabag-e678c4752a35b06c0a77d17fc23aa2de6abc4e18.tar.gz
wallabag-e678c4752a35b06c0a77d17fc23aa2de6abc4e18.tar.zst
wallabag-e678c4752a35b06c0a77d17fc23aa2de6abc4e18.zip
Use translator interface instead of final class
Symfony use a different class when in dev mode and prod mode. Prod loads `Symfony\Bundle\FrameworkBundle\Translation\Translator`. Dev loads `Symfony\Component\Translation\DataCollectorTranslator` to gather information for the debug bar. Fix #1585
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 82eb9474..87e34dc9 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -255,7 +255,7 @@ class EntryRepository extends EntityRepository
255 * 255 *
256 * @param int $userId 256 * @param int $userId
257 * 257 *
258 * @return integer 258 * @return int
259 */ 259 */
260 public function countAllEntriesByUsername($userId) 260 public function countAllEntriesByUsername($userId)
261 { 261 {