aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 7c4a05ed..880e7c65 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -509,32 +509,6 @@ class EntryRepository extends EntityRepository
509 } 509 }
510 510
511 /** 511 /**
512 * Inject a UrlHasher.
513 *
514 * @param UrlHasher $hasher
515 */
516 public function setUrlHasher(UrlHasher $hasher)
517 {
518 $this->urlHasher = $hasher;
519 }
520
521 /**
522 * Get the UrlHasher, or create a default one if not injected.
523 *
524 * XXX: the default uses the default hash algorithm
525 *
526 * @return UrlHasher
527 */
528 protected function getUrlHasher()
529 {
530 if (!isset($this->urlHasher)) {
531 $this->setUrlHasher(new UrlHasher());
532 }
533
534 return $this->urlHasher;
535 }
536
537 /**
538 * Return a query builder to be used by other getBuilderFor* method. 512 * Return a query builder to be used by other getBuilderFor* method.
539 * 513 *
540 * @param int $userId 514 * @param int $userId