moduleManager->list() as $module) { if (!method_exists($module, 'bootUi')) { continue; } $configuration['modules'][$module->handle()] = $module->bootUi(); } // tenant $configuration['tenant'] = [ 'id' => $this->tenant->identifier(), 'domain' => $this->tenant->domain(), 'label' => $this->tenant->label(), ]; // user $configuration['user'] = [ 'auth' => [ 'identifier' => $this->userIdentity->identifier(), 'identity' => $this->userIdentity->identity()->getIdentity(), 'label' => $this->userIdentity->label(), 'permissions' => [], // TODO: Implement permissions ], 'profile' => $this->userService->getEditableFields($this->userIdentity->identifier()), 'settings' => $this->userService->fetchSettings(), ]; return new JsonResponse($configuration); } }