Move Events Manager to service

This commit is contained in:
Romain Neutron
2012-09-24 16:18:55 +02:00
parent 48743dc786
commit b86c3ed0c0
23 changed files with 34 additions and 42 deletions

View File

@@ -1284,7 +1284,7 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
protected function load_notifications_preferences()
{
$Core = bootstrap::getCore();
$evt_mngr = eventsmanager_broker::getInstance($this->appbox, $Core);
$evt_mngr = $Core['events-manager'];
$notifications = $evt_mngr->list_notifications_available($this->id);
foreach ($notifications as $notification_group => $nots) {