Skip to content

refactor(Core): migrate Cache/Session/Token to modern HashTable + factory named methods#132

Merged
ralflang merged 4 commits into
FRAMEWORK_6_0from
refactor/migrate-to-modern-hashtable-and-sessions
Jun 9, 2026
Merged

refactor(Core): migrate Cache/Session/Token to modern HashTable + factory named methods#132
ralflang merged 4 commits into
FRAMEWORK_6_0from
refactor/migrate-to-modern-hashtable-and-sessions

Conversation

@ralflang

@ralflang ralflang commented Jun 9, 2026

Copy link
Copy Markdown
Member

Several coordinated changes for the HashTable/Session modernization:

  • SessionHandlerFactory prefers ModernHashtableBackend (PSR-4 Horde\HashTable\LockableHashTable) when bound; falls back to legacy HashtableBackend for BC.
  • Horde_Core_Factory_Cache prefers modern Horde\HashTable\HashTable when available, falls back to the legacy wrapper.
  • Horde_Core_Factory_HashTable and Horde_Core_HashTable_Wrapper marked @deprecated, pointing to the PSR-4 equivalents.
  • TokenServiceFactory gains createFromSecret(string), createForSession(HordeSession), and createFromDeploymentSecret() named methods. Existing create(Injector) unchanged for Form V3 / whups BC. Config is read via ConfigLoader rather than $GLOBALS['conf'].

Production behavior unchanged for existing consumers; new methods are additive.

Refs #131

@ralflang ralflang merged commit 795ba4a into FRAMEWORK_6_0 Jun 9, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant