Use new emitter system

This commit is contained in:
Thomas Tanghus 2013-09-18 13:15:38 +02:00
parent 1a13062701
commit 534933ee9b
1 changed files with 3 additions and 1 deletions

View File

@ -568,7 +568,9 @@ class OC {
} catch (Exception $e) {
}
OC_Hook::connect('OC_User', 'post_login', 'OC\Cache\File', 'loginListener');
// NOTE: This will be replaced to use OCP
$userSession = \OC_User::getUserSession();
$userSession->listen('postLogin', array('OC\Cache\File', 'loginListener'))
}
}