Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-07 13:05:09 +0300
committerGitHub <noreply@github.com>2020-08-07 13:05:09 +0300
commit0807e29e1765dfaa184356a89ecea78cee34418e (patch)
treeaeb0f491154ea1a71244b15ac85f3276a6920f07 /lib
parent06eb230d247f01055c204d73482b6d4667c92bc7 (diff)
parent246ed35d948e9b2fe4d8eb38378ba4873bafe2b9 (diff)
Merge pull request #22133 from nextcloud/boot-app-once
only boot apps once
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/Bootstrap/Coordinator.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/AppFramework/Bootstrap/Coordinator.php b/lib/private/AppFramework/Bootstrap/Coordinator.php
index 358e71d7854..e293ef2998e 100644
--- a/lib/private/AppFramework/Bootstrap/Coordinator.php
+++ b/lib/private/AppFramework/Bootstrap/Coordinator.php
@@ -60,6 +60,9 @@ class Coordinator {
/** @var RegistrationContext|null */
private $registrationContext;
+ /** @var string[] */
+ private $bootedApps = [];
+
public function __construct(IServerContainer $container,
Registry $registry,
IManager $dashboardManager,
@@ -134,6 +137,11 @@ class Coordinator {
}
public function bootApp(string $appId): void {
+ if (isset($this->bootedApps[$appId])) {
+ return;
+ }
+ $this->bootedApps[$appId] = true;
+
$appNameSpace = App::buildAppNamespace($appId);
$applicationClassName = $appNameSpace . '\\AppInfo\\Application';
if (!class_exists($applicationClassName)) {