~/talk

New in CakePHP 4 4, and API serializers

Talkat CakeFest 2022 · 2022-09-29..09-30· [php]
links:none on file
slides:none on file

Hands-on demo of CakePHP 4.4: generated a new app with SQLite, created users and calendar_items via migrations (added product_id and nullable all_day), showed automatic test migrations so PHPUnit runs Phinx migrations instead of static fixture schemas, built a calendar service wired through the DI container, implemented a custom JSON serializer registry with per-entity prepare/serialize/parse methods and incremental includes, wrote controller tests that exercise GET/POST flows, and hooked error reporting to Sentry — integration and tests run successfully after fixes.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Database schema management
  3. 3:40Users table
  4. 5:40Fixtures
  5. 8:00Other migration tools
  6. 12:20Improved help file
  7. 17:10Content type negotiation
  8. 28:50Custom view class
  9. 29:35Serializer
  10. 33:15Global Registry
  11. 34:33Calendar Serializer
  12. 38:55User Serializer
  13. 42:45Typeend
  14. 44:05Testing
  15. 47:20LSP
  16. 48:00Config Request
  17. 52:25Exception Reporting
  18. 57:15Serializer Mapping
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.