~/talk

Dad, how are Service Containers born?

TalkinItalianat laravelday 2021 · on Friday, 2021-09-24· [php]
links:none on file
slides:none on file

Shows how to implement a minimal PHP service container using test-driven development with PHPUnit and Reflection to add auto-wiring, abstract-to-concrete bindings, singleton bindings, and closure factories. The implementation resolves recursive constructor dependencies, returns bound implementations or shared singleton instances, and executes closures; tests for each feature are shown and compared to Laravel's container.

AI-written summary · about

  1. 0:00Introduction
  2. 2:25Service Container evolution
  3. 3:52Service Container definition
  4. 5:15Direct dependency issues
  5. 8:05Dependency Injection & SOLID
  6. 9:25Service Container binding
  7. 10:29Interface dependency resolution
  8. 14:23Service Container features
  9. 16:52TDD demo
  10. 27:27Recursive dependency resolution
  11. 39:36Singleton handling
  12. 44:42Closure binding
  13. 48:25Summary
  14. 49:28Q&A
~/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.