Practical PHP Patterns: Registry

 Practical PHP Patterns: Registry

via PHP Zone – Community for PHP users and developers by piccoloprincipe on 9/22/10


Fowler’s definition for the Registry pattern is this one: A well known object that other ones can use to find related objects or service.This vague definition leaves open the possibility of abuse.ImplementationThe idea of a Registry is simple: providing a dynamic possibility for discovering collaborator objects, so that we not hardcode static calls to global objects like Singletons in each of…

Comments

Comments are closed.