Skip to content

feat: Cookie handling domain object model#7

Merged
ralflang merged 1 commit into
FRAMEWORK_6_0from
feat/cookie-model
Jun 11, 2026
Merged

feat: Cookie handling domain object model#7
ralflang merged 1 commit into
FRAMEWORK_6_0from
feat/cookie-model

Conversation

@ralflang

Copy link
Copy Markdown
Member

Models a CookieParser, CookieList, Cookie interface and a strict Cookie implementation

We only strictly accept string values which are allowed by the cookie related RFCs and practical browsers
While PHP's builtin parsing is lax and surprises users with what may come from invalid content, we throw.

If you need to handle non-conforming input when creating cookies, best build a wrapper/decorator around StrictCookie (implementing Cookie interface)
or build your own Cookie interface implementation

Models a CookieParser, CookieList, Cookie interface and a strict Cookie implementation

We only strictly accept string values which are allowed by the cookie related RFCs and practical browsers
While PHP's builtin parsing is lax and surprises users with what may come from invalid content, we throw.

If you need to handle non-conforming input when creating cookies, best build a wrapper/decorator around StrictCookie (implementing Cookie interface)
or build your own Cookie interface implementation
@ralflang ralflang merged commit bd21a91 into FRAMEWORK_6_0 Jun 11, 2026
1 check failed
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