]> source.dussan.org Git - nextcloud-server.git/commit
Delegate bootstrap registration lazily 21828/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 14 Jul 2020 08:21:39 +0000 (10:21 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 14 Jul 2020 13:33:32 +0000 (15:33 +0200)
commitf03f88b437511ef29bad9e13c0d1a16e24c50bc8
treeecd6c742ff19fb1bdbfe95e1bc08147df92680c2
parent7b82895982f9fcac8aa04fa9d650bd1113f638c2
Delegate bootstrap registration lazily

* Keep the registration context
* Expose the context object for other components
* Ensure registration is only run once

Search providers are migrated for demonstration.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/AppFramework/Bootstrap/Coordinator.php
lib/private/AppFramework/Bootstrap/RegistrationContext.php
lib/private/Search/SearchComposer.php
tests/lib/AppFramework/Bootstrap/CoordinatorTest.php