Add TokensServiceProvider

This commit is contained in:
Romain Neutron
2013-04-30 18:02:09 +02:00
parent 9651640bc7
commit cf0f13d9c9
21 changed files with 138 additions and 83 deletions

View File

@@ -474,7 +474,7 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
$stmt->closeCursor();
}
if ($token === false) {
$token = random::getUrlToken($this->app, \random::TYPE_RSS, $this->id);
$token = $this->app['tokens']->getUrlToken(\random::TYPE_RSS, $this->id);
}
return new system_url($this->app['phraseanet.registry']->get('GV_ServerName') . 'atom/' . $token);