diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-07-13 14:58:52 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-07-14 15:55:23 +0200 |
commit | d9cc2f02136c454984ef9e5a8682a0bf369fa9b6 (patch) | |
tree | afbef01d86f8c21c449f5cab9c86528f00d1f13f /lib/private/AppFramework | |
parent | 7b82895982f9fcac8aa04fa9d650bd1113f638c2 (diff) | |
download | nextcloud-server-d9cc2f02136c454984ef9e5a8682a0bf369fa9b6.tar.gz nextcloud-server-d9cc2f02136c454984ef9e5a8682a0bf369fa9b6.zip |
Do not load app.php if Application implements IBootstrap
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r-- | lib/private/AppFramework/Bootstrap/Coordinator.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Bootstrap/Coordinator.php b/lib/private/AppFramework/Bootstrap/Coordinator.php index 085e7460da6..8a513d65029 100644 --- a/lib/private/AppFramework/Bootstrap/Coordinator.php +++ b/lib/private/AppFramework/Bootstrap/Coordinator.php @@ -147,7 +147,6 @@ class Coordinator { $this->logger->logException($e, [ 'message' => "Could not boot $appId" . $e->getMessage(), ]); - return; } catch (Throwable $e) { $this->logger->logException($e, [ 'message' => "Could not boot $appId" . $e->getMessage(), @@ -155,4 +154,11 @@ class Coordinator { ]); } } + + public function isBootable(string $appId) { + $appNameSpace = App::buildAppNamespace($appId); + $applicationClassName = $appNameSpace . '\\AppInfo\\Application'; + return class_exists($applicationClassName) && + in_array(IBootstrap::class, class_implements($applicationClassName), true); + } } |