mark Singleton as an anti-pattern (#31)

This commit is contained in:
Dominik Liebler
2013-09-03 14:52:42 +02:00
parent d4e74ce175
commit c71d715a65
2 changed files with 8 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ namespace DesignPatterns;
/**
* Multiton pattern
*
* --------------------------------------------------------------------------------------------------------------
* THIS IS CONSIDERED TO BE AN ANTI-PATTERN! FOR BETTER TESTABILITY AND MAINTAINABILITY USE DEPENDENCY INJECTION!
* --------------------------------------------------------------------------------------------------------------
*
* Purpose:
* to have only a list of named instances that are used, like a singleton but with n instances
*