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

@@ -94,8 +94,7 @@ class eventsmanager_notify_feed extends eventsmanager_notifyAbstract
if ($this->shouldSendNotificationFor($user_to_notif->get_id())) {
$readyToSend = false;
try {
$token = \random::getUrlToken(
$this->app,
$token = $this->app['tokens']->getUrlToken(
\random::TYPE_FEED_ENTRY
, $user_to_notif->get_id()
, null