Skip to content

Commit

Permalink
fix: replace deprecated IInitialStateService by IInitialState
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Oct 30, 2024
1 parent d1cdaf5 commit e6c97c7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/Settings/AdminSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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')
);
Expand Down

0 comments on commit e6c97c7

Please sign in to comment.