News Archive
PhpRiot Newsletter
Your Email Address:

More information

Dynamic Eclipse templates for the singleton pattern

Note: This article was originally published at Planet PHP on 25 September 2011.
Planet PHP

I'm currently working with a legacy PHP CMS and do-it-all system which is heavily reliant on singletons. Instead of relying on static methods and direct invocation we store object instances in a global array, these instances are then retrieved through the use of a call looking like this: singleton('ClassName').... Read More