Skip to content
Snippets Groups Projects
Unverified Commit 0807e29e authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #22133 from nextcloud/boot-app-once

only boot apps once
parents 06eb230d 246ed35d
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment