Singleton-aware Factory in PHP

I’m using a Factory (pattern) to load objects based on configuration. Explaining the reasoning is beyond the scope of this post, the link to Wikipedia might help here.
Here’s some code how it was:

Continue reading “Singleton-aware Factory in PHP”

Advertisements
Singleton-aware Factory in PHP