diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-09-11 00:09:00 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-09-11 00:14:06 +0200 |
commit | b95e63b8da7beeb4a299f2be7f1800dd80a335a4 (patch) | |
tree | 6ee84b83fd3396ce1456221629568d27742aca8e | |
parent | be9dde8a074117833ce7f0252ac8784146c8a9fc (diff) | |
download | nextcloud-server-b95e63b8da7beeb4a299f2be7f1800dd80a335a4.tar.gz nextcloud-server-b95e63b8da7beeb4a299f2be7f1800dd80a335a4.zip |
announce added user and group backend later as there might be interdeps
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r-- | apps/user_ldap/lib/AppInfo/Application.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/AppInfo/Application.php b/apps/user_ldap/lib/AppInfo/Application.php index cb0fec69600..93f7ccb379d 100644 --- a/apps/user_ldap/lib/AppInfo/Application.php +++ b/apps/user_ldap/lib/AppInfo/Application.php @@ -109,11 +109,11 @@ class Application extends App implements IBootstrap { $groupBackend = new Group_Proxy($configPrefixes, $ldapWrapper, $groupPluginManager); \OC_User::useBackend($userBackend); + $groupManager->addBackend($groupBackend); + $userBackendRegisteredEvent = new UserBackendRegistered($userBackend, $userPluginManager); - $dispatcher->dispatchTyped($userBackendRegisteredEvent); $legacyDispatcher->dispatch('OCA\\User_LDAP\\User\\User::postLDAPBackendAdded', $userBackendRegisteredEvent); - - $groupManager->addBackend($groupBackend); + $dispatcher->dispatchTyped($userBackendRegisteredEvent); $groupBackendRegisteredEvent = new GroupBackendRegistered($groupBackend, $groupPluginManager); $dispatcher->dispatchTyped($groupBackendRegisteredEvent); } |