Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cookie] New Component & Contract #181

Merged
merged 12 commits into from
Dec 4, 2023
Merged

Conversation

JoshuaEstes
Copy link
Member

@JoshuaEstes JoshuaEstes commented Dec 1, 2023

Description

Closes #125

The cookie class should not be responsible for sending the headers or pulling name/value from $_COOKIE. This would be the job of the cookie manager. Cookie manager uses $_COOKIE to grab cookies. If a cookie does not exist, it uses the factory to create one. Sending the Set-Cookie header should be done be the cookie manager as well.

The Cookie class should be about to output the header value. Should be able to do something like:

header('Set-Cookie: ' . (string) $cookie);

Checklist

  • Updated CHANGELOG files
  • Updated Documentation
  • Unit Tests Created
  • php-cs-fixer

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Dec 1, 2023
@JoshuaEstes JoshuaEstes marked this pull request as ready for review December 4, 2023 16:30
@JoshuaEstes JoshuaEstes requested a review from a team as a code owner December 4, 2023 16:30
@JoshuaEstes JoshuaEstes added this pull request to the merge queue Dec 4, 2023
Merged via the queue into SonsOfPHP:main with commit 7757151 Dec 4, 2023
1 of 5 checks passed
@JoshuaEstes JoshuaEstes deleted the cookie branch December 4, 2023 16:31
JoshuaEstes added a commit to JoshuaEstes/sonsofphp that referenced this pull request Dec 8, 2023
* main:
  [Mailer] New Component and Contract (SonsOfPHP#190)
  [Mailer] New Component and Contract (SonsOfPHP#189)
  House Keeping (SonsOfPHP#188)
  [HttpHandler] Component (SonsOfPHP#187)
  [Container] New Component (SonsOfPHP#182)
  [Cookie] New Component & Contract (SonsOfPHP#181)
  [Pager] Doctrine Bridge (SonsOfPHP#175)
  fuckery (SonsOfPHP#174)
  [Money] Add Twig Bridge (SonsOfPHP#173)
  docs
JoshuaEstes added a commit to JoshuaEstes/sonsofphp that referenced this pull request Jan 3, 2024
* main:
  Housekeeping (SonsOfPHP#203)
  [EventDispatcher] Adding a few new things and working on docs (SonsOfPHP#202)
  [Bard] various changes and updates (SonsOfPHP#201)
  Adding Churn PHP as a tool in the repo (SonsOfPHP#200)
  Update symfony/phpunit-bridge requirement from ^6 to ^6 || ^7 (SonsOfPHP#192)
  [Mailer] New Component and Contract (SonsOfPHP#190)
  [Mailer] New Component and Contract (SonsOfPHP#189)
  House Keeping (SonsOfPHP#188)
  [HttpHandler] Component (SonsOfPHP#187)
  [Container] New Component (SonsOfPHP#182)
  [Cookie] New Component & Contract (SonsOfPHP#181)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Cookie] New Component
1 participant