mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
mark Singleton as an anti-pattern (#31)
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user