// in case someone calls loadApp() directly
self::registerAutoloading($app, $appPath);
- /** @var \OC\AppFramework\Bootstrap\Coordinator $coordinator */
- $coordinator = \OC::$server->query(\OC\AppFramework\Bootstrap\Coordinator::class);
- $coordinator->bootApp($app);
if (is_file($appPath . '/appinfo/app.php')) {
\OC::$server->getEventLogger()->start('load_app_' . $app, 'Load app: ' . $app);
try {
\OC::$server->getEventLogger()->end('load_app_' . $app);
}
+ /** @var \OC\AppFramework\Bootstrap\Coordinator $coordinator */
+ $coordinator = \OC::$server->query(\OC\AppFramework\Bootstrap\Coordinator::class);
+ $coordinator->bootApp($app);
+
$info = self::getAppInfo($app);
if (!empty($info['activity']['filters'])) {
foreach ($info['activity']['filters'] as $filter) {
public function register(IRegistrationContext $context): void;
/**
+ * Boot the application
+ *
+ * At this stage you can assume that all services are registered and the DI
+ * container(s) are ready to be queried.
+ *
+ * This is also the state where an optional `appinfo/app.php` was loaded.
+ *
* @param IBootContext $context
*
* @since 20.0.0