Dependency Injection (DI) Container in PHP Example

  • Dependency Injection

Using Container and Dependency Injection architecture this allow our app to depends on a DBAdapter interface instead of depending on Oracle Adapter directly. Plus deferring the Adapter initialisation to continer instead of writing Adapter in our app.