~/talk

IOC container beyond constructor injection

Talkat Laracon EU 2016 · 2016-08-23..08-24· [php]
slides:none on file

Explains concrete patterns and Laravel calls: the IOC container composes objects via app->bind / app->make / app->singleton, uses reflection for recursive constructor injection, and composes decorators (a caching and a logging wrapper around an FTP storage) so the final service is assembled and testable. Shows service providers, container resolving events for method injection and soft dependencies, and call/wrap for lazy handlers. Notes contextual binding works for constructors but contextual binding for controller methods was denied as a feature.

AI-written summary · about

  1. 0:00Start
  2. 1:21International Olympic Committee
  3. 11:49Automatic constructor injection
  4. 16:35Register bindings In the register method
  5. 18:31Bind a concretion for every interface
  6. 24:47Method injection
  7. 27:59Using the container
  8. 28:09Event Dispatchers - Router
  9. 33:41Solving circular dependencies
  10. 35:31Contextual binding for methods (unsupported)
  11. 36:39recap: Reflection Binding Calling code Bonus
~/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.