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(), ]; return new JsonResponse($configuration); } }