~/talk

Create the DTO system of your dreams

Talkat API Platform Conference 2023 · 2023-09-21..09-22· [api-design, php]
slides:none on file

Adds the new state options flag so Doctrine’s collection/item providers and processors remain usable for DTO resources, but reveals problems with changing the request’s central object and missing custom fields and processors. Implements a custom provider/processor that delegates queries and saves to Doctrine, maps entity↔DTO via a small mapper (example: micromapper), preserves pagination and filters, and returns DTOs as the canonical request object — a working, reusable pattern that requires only mapping code.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:49What makes a good DTO system
  3. 2:32Providers and processors explained
  4. 7:12Why use DTOs over entities
  5. 9:20DTOs with API resource attribute
  6. 12:30State options and their limits
  7. 16:44Making DTO the central object
  8. 19:08Custom state provider setup
  9. 21:14Generic DTO state provider
  10. 25:07Reusable DTO system design
  11. 29:00Final solution and benefits
  12. 31:04Summary and thanks
~/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.