Skip to content

docs: improve cookies#7778

Merged
kenjis merged 16 commits intocodeigniter4:developfrom
kenjis:fix-docs-cookies
Aug 9, 2023
Merged

docs: improve cookies#7778
kenjis merged 16 commits intocodeigniter4:developfrom
kenjis:fix-docs-cookies

Conversation

@kenjis
Copy link
Copy Markdown
Member

@kenjis kenjis commented Aug 4, 2023

Description
See https://forum.codeigniter.com/showthread.php?tid=88176

  • fix docs
  • refactor

Checklist:

  • Securely signed commits
  • [] Component(s) with PHPDoc blocks, only if necessary or adds value
  • [] Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@kenjis kenjis added the documentation Pull requests for documentation only label Aug 4, 2023
@kenjis kenjis force-pushed the fix-docs-cookies branch from 0c548d1 to 72e7d1c Compare August 4, 2023 04:23

use CodeIgniter\Cookie\Cookie;
use Config\Services;
use DateTime;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI4 has a class use CodeIgniter\I18n\Time;. These documents are codeigniter, I think it is better to use the internal library.
Just a personal preference.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to use undocumented max-age.

Copy link
Copy Markdown
Member

@MGatner MGatner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe all our config classes should include "Config" in the name? 🤔

@kenjis kenjis merged commit 06fe970 into codeigniter4:develop Aug 9, 2023
@kenjis kenjis deleted the fix-docs-cookies branch August 9, 2023 08:04
@kenjis
Copy link
Copy Markdown
Member Author

kenjis commented Aug 9, 2023

Maybe all our config classes should include "Config" in the name? 🤔

It may be better.

@MGatner
Copy link
Copy Markdown
Member

MGatner commented Aug 11, 2023

Something to consider for v5. I frequently have to alias my imports so I can use both Widget and Widget as WidgetConfig. It also feels weird to typehint things App that just use the object properties.

@MGatner MGatner added the next major version? Read this for a relevant v5 idea label Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Pull requests for documentation only next major version? Read this for a relevant v5 idea

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants