Saturday 28th June, 2014
2:30pm to 3:15pm
Over the past few years, the mantra in OOP PHP projects has been "Dependency Injection": get rid of those registries, service locators, and God objects. Simply put, Dependency Injection (DI) is the act of injecting objects on which a class depends via the constructor or setter methods, instead of instantiating them directly or pulling them from a known location (usually a registry).
The real question, however, is: where do you create those dependency instances? This is where a concept called "Inversion of Control" (IoC) comes into play.
Sign in to add slides, notes or videos to this session