Skip to content

feat: Transition to injection and handle user fallback#75

Merged
TDannhauer merged 1 commit intoFRAMEWORK_6_0from
feat/activesync-driver-inject-serverrequest-registry
Mar 31, 2026
Merged

feat: Transition to injection and handle user fallback#75
TDannhauer merged 1 commit intoFRAMEWORK_6_0from
feat/activesync-driver-inject-serverrequest-registry

Conversation

@ralflang
Copy link
Copy Markdown
Member

horde/ActiveSync#22 originally had an architecture violation, calling into Horde Registry and using globals from library level
This change instead moves all user detection logic to an overloaded driver->getUser method in horde/core level.
This keeps the activesync library clean of horde glue.

As a side goal we inject the registry and the modern PSR-7 request from the factory.
Horde_ActiveSync normally uses the homegrown Horde_Controller_Request object but we can wrap the PSR-7 object into a Horde_Controller_Request (Psr7Wrapper).
So going forward we will step by step migrate to PSR-7 standard.

The original PR's fallback logic is kept (base getUser implementation, get "user" parameter from request, fall back to authenticated horde user)

horde/ActiveSync#22 originally had an architecture violation, calling into Horde Registry and using globals from library level
This change instead moves all user detection logic to an overloaded driver->getUser method in horde/core level.
This keeps the activesync library clean of horde glue.

As a side goal we inject the registry and the modern PSR-7 request from the factory.
Horde_ActiveSync normally uses the homegrown Horde_Controller_Request object but we can wrap the PSR-7 object into a Horde_Controller_Request (Psr7Wrapper).
So going forward we will step by step migrate to PSR-7 standard.

The original PR's fallback logic is kept (base getUser implementation, get "user" parameter from request, fall back to authenticated horde user)
@ralflang ralflang requested a review from TDannhauer March 31, 2026 19:39
ralflang added a commit to horde/ActiveSync that referenced this pull request Mar 31, 2026
@TDannhauer TDannhauer merged commit 2ec00b9 into FRAMEWORK_6_0 Mar 31, 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.

2 participants