File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
public/AppFramework/Bootstrap Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -149,9 +149,6 @@ public static function loadApp(string $app) {
149149 // in case someone calls loadApp() directly
150150 self ::registerAutoloading ($ app , $ appPath );
151151
152- /** @var \OC\AppFramework\Bootstrap\Coordinator $coordinator */
153- $ coordinator = \OC ::$ server ->query (\OC \AppFramework \Bootstrap \Coordinator::class);
154- $ coordinator ->bootApp ($ app );
155152 if (is_file ($ appPath . '/appinfo/app.php ' )) {
156153 \OC ::$ server ->getEventLogger ()->start ('load_app_ ' . $ app , 'Load app: ' . $ app );
157154 try {
@@ -176,6 +173,10 @@ public static function loadApp(string $app) {
176173 \OC ::$ server ->getEventLogger ()->end ('load_app_ ' . $ app );
177174 }
178175
176+ /** @var \OC\AppFramework\Bootstrap\Coordinator $coordinator */
177+ $ coordinator = \OC ::$ server ->query (\OC \AppFramework \Bootstrap \Coordinator::class);
178+ $ coordinator ->bootApp ($ app );
179+
179180 $ info = self ::getAppInfo ($ app );
180181 if (!empty ($ info ['activity ' ]['filters ' ])) {
181182 foreach ($ info ['activity ' ]['filters ' ] as $ filter ) {
Original file line number Diff line number Diff line change @@ -38,6 +38,13 @@ interface IBootstrap {
3838 public function register (IRegistrationContext $ context ): void ;
3939
4040 /**
41+ * Boot the application
42+ *
43+ * At this stage you can assume that all services are registered and the DI
44+ * container(s) are ready to be queried.
45+ *
46+ * This is also the state where an optional `appinfo/app.php` was loaded.
47+ *
4148 * @param IBootContext $context
4249 *
4350 * @since 20.0.0
You can’t perform that action at this time.
0 commit comments