From e6c97c745813b9e613ce2bbeacbaabdb5763afa2 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Thu, 17 Oct 2024 14:38:24 +0200 Subject: [PATCH] fix: replace deprecated IInitialStateService by IInitialState Signed-off-by: Julien Veyssier --- lib/Settings/AdminSettings.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/Settings/AdminSettings.php b/lib/Settings/AdminSettings.php index 53021c5b..b6934a5c 100644 --- a/lib/Settings/AdminSettings.php +++ b/lib/Settings/AdminSettings.php @@ -29,7 +29,7 @@ use OCA\UserOIDC\Service\ID4MeService; use OCA\UserOIDC\Service\ProviderService; use OCP\AppFramework\Http\TemplateResponse; -use OCP\IInitialStateService; +use OCP\AppFramework\Services\IInitialState; use OCP\IURLGenerator; use OCP\Settings\ISettings; use OCP\Util; @@ -40,23 +40,20 @@ public function __construct( private ProviderService $providerService, private ID4MeService $Id4MeService, private IURLGenerator $urlGenerator, - private IInitialStateService $initialStateService, + private IInitialState $initialStateService, ) { } public function getForm() { $this->initialStateService->provideInitialState( - Application::APP_ID, 'id4meState', $this->Id4MeService->getID4ME() ); $this->initialStateService->provideInitialState( - Application::APP_ID, 'providers', $this->providerService->getProvidersWithSettings() ); $this->initialStateService->provideInitialState( - Application::APP_ID, 'redirectUrl', $this->urlGenerator->linkToRouteAbsolute('user_oidc.login.code') );