~/talk

IoC containers beyond constructor injection

Talkat Dutch PHP Conference 2018 · 2018-06-07..06-09· [software-architecture]
slides:none on file

Shows that an IoC container does more than constructor injection by demonstrating concrete tactics: use a reflection container to auto-resolve constructors, alias interfaces to concrete classes per PSR 11, and register shared singletons for things like entity managers. Builds a storage stack with FTP, cache and log decorators to prove composition and decoupling, uses contextual binding to give different controllers differently configured filesystem instances, performs method injection/inflectors for post-construction setup, and breaks circular deps with a soft dependency callable.

AI-written summary · about

  1. 0:00Start
  2. 0:48WHAT IS IOC?
  3. 16:35CONSTRUCTOR INJECTION
  4. 18:58REGISTRATION - BINDING
  5. 24:18REGISTRATION - CONTEXTUAL BINDING
  6. 33:05CALLING THE CONTAINER
  7. 38:00BONUS - CIRCULAR DEPENDENCIES
~/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.