Overriding Symfony in a million ways
summary
Claims that every Symfony default is replaceable and backs it with concrete edits: renaming directories (app → easy_publish), changing getCacheDir/getLogDir and front controller paths, tweaking composer.json params, and two concrete DI strategies — compiler pass to rewrite definitions and service decoration to wrap the original and receive it as an argument. Demonstrations include copying routes/templates into app_resources and showing a decorated service bar that delegates to foo. Warning: it works but increases maintenance cost.
AI-written summary · about
chapters (22)
- 0:00Start
- 0:50Who Am I
- 2:33Overriding App
- 4:39Cache Directory
- 5:54Web Directory
- 7:43Vendor Directory
- 12:33Config Files
- 15:02Is It Wise To Have Multiple Kernels
- 17:18Routes
- 19:42Template
- 20:43The Bundle Inheritance
- 21:23Override the Show Action in the Exception Controller Coming from the Symphony Bundle
- 22:59Compiler Passes
- 24:14Container Builder
- 25:14Decoration of Service
- 26:18Duplicate Services
- 27:28Use Parameters
- 29:52Override Your Configuration Directly
- 31:26Override a Type
- 31:52Form Type Extension
- 33:51Translation
- 34:50Remarks








