From 20c1ce7f470211e53461be7893cb7320f0a2b452 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 9 Jul 2014 15:32:33 +0200 Subject: Add public interfaces for User, UserManager and UserSession --- lib/private/user/manager.php | 3 ++- lib/private/user/session.php | 3 ++- lib/private/user/user.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/private/user') diff --git a/lib/private/user/manager.php b/lib/private/user/manager.php index f2964fecca3..d4d91163003 100644 --- a/lib/private/user/manager.php +++ b/lib/private/user/manager.php @@ -10,6 +10,7 @@ namespace OC\User; use OC\Hooks\PublicEmitter; +use OCP\IUserManager; /** * Class Manager @@ -24,7 +25,7 @@ use OC\Hooks\PublicEmitter; * * @package OC\User */ -class Manager extends PublicEmitter { +class Manager extends PublicEmitter implements IUserManager { /** * @var \OC_User_Interface[] $backends */ diff --git a/lib/private/user/session.php b/lib/private/user/session.php index 5f0dee607ae..8c9b3e264e3 100644 --- a/lib/private/user/session.php +++ b/lib/private/user/session.php @@ -10,6 +10,7 @@ namespace OC\User; use OC\Hooks\Emitter; +use OCP\IUserSession; /** * Class Session @@ -29,7 +30,7 @@ use OC\Hooks\Emitter; * * @package OC\User */ -class Session implements Emitter, \OCP\IUserSession { +class Session implements IUserSession, Emitter { /** * @var \OC\User\Manager $manager */ diff --git a/lib/private/user/user.php b/lib/private/user/user.php index 8aba7188e24..f9c2cb4d130 100644 --- a/lib/private/user/user.php +++ b/lib/private/user/user.php @@ -10,8 +10,9 @@ namespace OC\User; use OC\Hooks\Emitter; +use OCP\IUser; -class User { +class User implements IUser { /** * @var string $uid */ -- cgit v1.2.3