use Symfony\Component\Validator\Constraints as Assert;
use Wallabag\AnnotationBundle\Entity\Annotation;
use Wallabag\CoreBundle\Helper\EntityTimestampsTrait;
+use Wallabag\CoreBundle\Helper\UrlHasher;
use Wallabag\UserBundle\Entity\User;
/**
public function setUrl($url)
{
$this->url = $url;
- $this->hashedUrl = hash('sha1', $url);
+ $this->hashedUrl = UrlHasher::hashUrl($url);
return $this;
}