Symfony Forms in Detail
summary
Covers the Symfony Form Component internals and concrete how‑tos: wiring DTOs to HTML using form types and DataMapperInterface, instantiating immutable value objects via an empty_data closure, converting SKU/value objects with a model transformer that throws TransformationFailedException, and using Doctrine’s entity type for category choices. Walks through building contact, category and product forms, adding Bootstrap 4 theming, catching domain exceptions and turning them into form errors, and shipping runnable exercises with PHPUnit functional tests and repository branches.
AI-written summary · about
chapters (32)
- 0:00Introduction
- 1:28Agenda
- 2:19Virtual Machine Setup
- 4:23Coding Challenges
- 5:18PinCheck
- 6:29Form Component
- 8:45Form Components
- 10:14Contact Form
- 11:55Controller
- 12:26Contact
- 14:39DTO
- 15:50Forms
- 21:29Controllers
- 24:46Create Form
- 26:26Form Processing
- 28:52Creating a View
- 31:08Using Forms
- 32:24Accessing Data
- 33:43Additional Challenges
- 35:21Recap
- 35:34Validation Extension
- 37:47Horizontal Layout
- 38:58Contact Solution
- 45:37Form Types
- 46:36Form Options
- 47:54Form Type Extension
- 48:43No Validate
- 50:17Configuration Behavior
- 50:43Extension Points
- 52:02Data Members
- 54:32Data Mappers
- 57:03dynamap
related talks
49mForms in Symfony 3
44mSymfony Forms with Rich Domain Model
42mUsing Symfony Forms
56mThe absolute beginner's guide to Domain Driven Design with Symfony
17mSymfony Without Bundles
41mBuilding first-class REST APIs with Symfony
02h 10mLet's play a game: No extends. Advanced OOP with Symfony 3
57mBuilding first-class REST APIs with Symfony
