Fix deprecated API (#71)

master
e-alfred 2019-04-30 15:26:55 +02:00 committed by Loïc Blot
parent cc8677d181
commit 1e97aa0fc0
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class Application extends App {
* Core
*/
$container->registerService('UserId', function(IContainer $c) {
return \OCP\User::getUser();
return \OC::$server->getUserSession()->getUser()->getUID();
});
$container->registerService('Config', function($c) {