mapper = $mapper; $this->uid = $UserId; $this->initialStateService = $initialStateService; $this->manager = $manager; } public function getForm() { $this->initialStateService->provideInitialState( Application::APP_ID, 'webauthn-devices', $this->mapper->findAllForUid($this->uid) ); return new TemplateResponse('settings', 'settings/personal/security/webauthn', [ ]); } public function getSection(): ?string { if (!$this->manager->isWebAuthnAvailable()) { return null; } return 'security'; } public function getPriority(): int { return 20; } }