Shorthands for cookie values #6
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No project
No assignees
1 participant
Notifications
Total time spent: 29 minutes 19 seconds
Due date
c.fahner
29 minutes 19 seconds
No due date set.
Depends on
Reference
slendium/http#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently the code to extract cookie values using the library abstractions looks like this:
This is an unacceptable amount of code for a library that is supposed to make things like this easier, considering the "PHP way" to get this information is simply referencing
$_COOKIES['cookieName'].This issue introduces a utility class
Slendium\Http\Message\Cookieswith a methodget(Message|iterable<Field> $source, string $name):?string. Passing the method aMessageextracts the cookie value from its$headers.Note: also update the README example.