forked from wallabag/wallabag
Remove useless methods
Also fix a phpdoc block
This commit is contained in:
@ -508,32 +508,6 @@ class EntryRepository extends EntityRepository
|
||||
return $this->find($randomId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Inject a UrlHasher.
|
||||
*
|
||||
* @param UrlHasher $hasher
|
||||
*/
|
||||
public function setUrlHasher(UrlHasher $hasher)
|
||||
{
|
||||
$this->urlHasher = $hasher;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the UrlHasher, or create a default one if not injected.
|
||||
*
|
||||
* XXX: the default uses the default hash algorithm
|
||||
*
|
||||
* @return UrlHasher
|
||||
*/
|
||||
protected function getUrlHasher()
|
||||
{
|
||||
if (!isset($this->urlHasher)) {
|
||||
$this->setUrlHasher(new UrlHasher());
|
||||
}
|
||||
|
||||
return $this->urlHasher;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a query builder to be used by other getBuilderFor* method.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user