Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (43 sloc) 1.73 KB

Dependency injection

DALMP offers a set of classes that allows you to work with MySQL, Cache backends and sessions, but when trying to use all this together, some perfomance issues may be raised, so to deal with this, a DI (dependecy injector) is high recomendable.

The idea of using a DI is to load once, and use any time with out need to reload the objects.

abstractDI

abstractDI is the name of an abstrac class that works as a base for building a dependecy injector.

Note

The abstracDI class can be used as a base for any project not only DALMP

DI

DI (Dependecy Injector) extends abstractDI and creates the DI for DALMP.

Example

Using mysql, cache (redis), sessions.

TODO Examples