Design Patterns: Registry and Service Locator
Ian Unruh (contact me)
This class can register classes that implement abstract services.
It acts as registry that keeps track of classes that implement certain services defined by abstract interfaces.
The class can locate which registered classes implement requested services and return instances of objects of the service classes.
Click here for detailed information about this class on phpclasses.org