~/talk

Inversion of Control Containers Beyond Constructor Injection

Talkat PHP UK Conference 2018 · 2018-02-14..02-16· [developer-experience]
slides:none on file

Claim: IoC containers do far more than constructor injection and can compose decorators, aliases and contextual bindings so small single‑responsibility classes assemble automatically. Examples use PSR-11, Symfony, Laravel and the League containers and show reflection auto‑resolution, contextual binding for different filesystem configs, sharing/singletons, tagging and container resolving hooks to inject method dependencies or soft resolvers. A worked example composes an FTP storage wrapped by logging and caching decorators and demonstrates resolving circular dependencies by injecting a queue as a soft dependency.

AI-written summary · about

  1. 0:00Introduction
  2. 2:40Design Patterns
  3. 12:42Implementations
  4. 14:27Automatic Object Resolution
  5. 17:12Help the Container
  6. 19:08Dependencies
  7. 22:10Contextual Binding
  8. 25:19Container Events
  9. 27:02Container Injection
  10. 28:45Soft Dependencies
  11. 30:23Config Variables
  12. 32:18Service Providers
  13. 33:32When and How
  14. 35:25Using Arguments
  15. 36:31Calling Functions
  16. 38:24Reflection Functions
  17. 40:10Tagging
  18. 41:35Circular dependencies
  19. 43:44Recap
~/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.