~/talk

Mastering Symfony 4's Dependency Injection

Talkat Web Summer Camp 2019 · 2019-08-28..08-30· [php, developer-experience]
slides:none on file

Explains how Symfony 4 hides the container and relies on automation to compile service definitions into PHP classes, then demonstrates by building a skeleton app and a Greeter service used via constructor and action injection. Shows how services.yaml uses autowire, autoconfigure, resource, bindings, env var processors and named autowiring aliases (example: multiple cache pools injected by argument name). Opens the compiled container to show generated factory methods, notes performance win from splitting container files, and proposes generating a preloading PHP file for hot-path services.

AI-written summary · about

  1. 0:00Intro
  2. 3:40What is Symphony 4
  3. 4:27Dependency Injection
  4. 6:11Creating a Symphony application
  5. 8:00Flex
  6. 10:40Skeleton
  7. 11:50Status
  8. 12:57Containers
  9. 14:45Compiler Passes
  10. 17:38Container Files
  11. 21:00Compiled Container
  12. 26:54Preloading
  13. 34:35Greater class
  14. 41:52Inline roots parameter configuration
  15. 44:02Open compiled files
  16. 44:56Constructor vs Action Injection
  17. 47:15Class
  18. 48:45Design Issue
  19. 53:30AutoWiring
  20. 55:55Service Configuration
~/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.