Merge pull request #22791 from nextcloud/fix/noid/ldap-backend-added-post-events

announce added user and group backend later as there might be interdeps
This commit is contained in:
Morris Jobke 2020-09-11 09:33:21 +02:00 committed by GitHub
commit 8ab2d5a8d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -109,11 +109,11 @@ class Application extends App implements IBootstrap {
$groupBackend = new Group_Proxy($configPrefixes, $ldapWrapper, $groupPluginManager);
\OC_User::useBackend($userBackend);
$userBackendRegisteredEvent = new UserBackendRegistered($userBackend, $userPluginManager);
$dispatcher->dispatchTyped($userBackendRegisteredEvent);
$legacyDispatcher->dispatch('OCA\\User_LDAP\\User\\User::postLDAPBackendAdded', $userBackendRegisteredEvent);
$groupManager->addBackend($groupBackend);
$userBackendRegisteredEvent = new UserBackendRegistered($userBackend, $userPluginManager);
$legacyDispatcher->dispatch('OCA\\User_LDAP\\User\\User::postLDAPBackendAdded', $userBackendRegisteredEvent);
$dispatcher->dispatchTyped($userBackendRegisteredEvent);
$groupBackendRegisteredEvent = new GroupBackendRegistered($groupBackend, $groupPluginManager);
$dispatcher->dispatchTyped($groupBackendRegisteredEvent);
}