summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php')
-rw-r--r--apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php15
1 files changed, 4 insertions, 11 deletions
diff --git a/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php b/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php
index 98a3cc71263..9445adbd5b6 100644
--- a/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php
+++ b/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php
@@ -25,20 +25,12 @@ namespace OCA\User_LDAP\Handler;
use OCA\Files_External\Config\IConfigHandler;
use OCA\Files_External\Config\SimpleSubstitutionTrait;
+use OCA\Files_External\Config\UserContext;
use OCA\User_LDAP\User_Proxy;
-use OCP\IUserSession;
-class ExtStorageConfigHandler implements IConfigHandler {
+class ExtStorageConfigHandler extends UserContext implements IConfigHandler {
use SimpleSubstitutionTrait;
- /** @var IUserSession */
- private $session;
-
- public function __construct(IUserSession $session) {
- $this->placeholder = 'home';
- $this->session = $session;
- }
-
/**
* @param mixed $optionValue
* @return mixed the same type as $optionValue
@@ -46,7 +38,8 @@ class ExtStorageConfigHandler implements IConfigHandler {
* @throws \Exception
*/
public function handle($optionValue) {
- $user = $this->session->getUser();
+ $this->placeholder = 'home';
+ $user = $this->getSession()->getUser();
if($user === null) {
return $optionValue;
}