~/talk

Demystifying Dependency Injection Containers

Talkat Laracon EU 2019 · 2019-08-28..08-30· [php, developer-experience]
slides:none on file

Builds a minimal DI container (a bindings array plus set/get), registers factories that accept the container, and demonstrates container get recursion resolving transitive dependencies down to a base case that simply does new Logger. Then adds reflection-based autowiring: inspect constructor types, recursively build parameters, and call newInstanceArgs. The implementation runs end-to-end in the demo and successfully constructs complex object graphs with very little code.

AI-written summary · about

  1. 0:00Introduction to DI
  2. 0:39Dependency injection basics
  3. 3:33The need for containers
  4. 5:24Building a simple container
  5. 9:13Recursive dependency resolution
  6. 12:51Tracing container execution
  7. 16:14Introduction to auto wiring
  8. 17:37Implementing auto wiring
  9. 21:04Reflection in action
  10. 23:43Limitations and conclusion
~/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.