Matters of State
summary
Proposal links React’s one‑way state model to Symfony events by detecting Doctrine changes at preFlush and dispatching domain events automatically. A flush listener inspects the UnitOfWork to emit create/update/delete events, with expensive work moved to preFlush/postFlush or queued for post‑transaction delivery. Annotations on entities express desired behavior, so declarative annotations replace controller glue and centralize event wiring; debugging and transactional delivery remain implementation challenges.
AI-written summary · about
chapters (18)
- 0:00Introduction and speaker intro
- 1:22About the speaker
- 2:49Origin of the talk
- 3:51React basics and JSX
- 5:40React's one-way data flow
- 7:48React as a state machine
- 8:29React state manipulation example
- 12:47Imperative vs declarative programming
- 16:44Imperative vs declarative in code
- 18:32Declarative PHP controllers
- 20:18Symfony EventDispatcher basics
- 23:50When to dispatch events
- 24:55Reactive listeners explained
- 27:21Dispatching events from controllers
- 28:26Dispatching events from services
- 29:07Flush listener and state events
- 30:34Declarative event annotations proposal
- 32:59Q&A session
