mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-05-06 06:25:48 +02:00
no longer list Singleton and ServiceLocator as anti-pattern, still advise against it in examples
This commit is contained in:
parent
7b847bdb21
commit
6a6b1bbeea
@ -12,5 +12,5 @@ solve this problem by somehow controlling this object creation.
|
||||
* [Pool](Pool) [:notebook:](http://en.wikipedia.org/wiki/Object_pool_pattern)
|
||||
* [Prototype](Prototype) [:notebook:](http://en.wikipedia.org/wiki/Prototype_pattern)
|
||||
* [SimpleFactory](SimpleFactory)
|
||||
* [Singleton](Singleton) [:notebook:](http://en.wikipedia.org/wiki/Singleton_pattern) (is considered an anti-pattern! :no_entry:)
|
||||
* [Singleton](Singleton) [:notebook:](http://en.wikipedia.org/wiki/Singleton_pattern)
|
||||
* [StaticFactory](StaticFactory)
|
||||
|
@ -51,7 +51,7 @@ The patterns can be structured in roughly three different categories. Please cli
|
||||
* [Pool](Creational/Pool) [:notebook:](http://en.wikipedia.org/wiki/Object_pool_pattern)
|
||||
* [Prototype](Creational/Prototype) [:notebook:](http://en.wikipedia.org/wiki/Prototype_pattern)
|
||||
* [SimpleFactory](Creational/SimpleFactory)
|
||||
* [Singleton](Creational/Singleton) [:notebook:](http://en.wikipedia.org/wiki/Singleton_pattern) (is considered an anti-pattern! :no_entry:)
|
||||
* [Singleton](Creational/Singleton) [:notebook:](http://en.wikipedia.org/wiki/Singleton_pattern)
|
||||
* [StaticFactory](Creational/StaticFactory)
|
||||
|
||||
### [Structural](Structural)
|
||||
@ -87,4 +87,4 @@ The patterns can be structured in roughly three different categories. Please cli
|
||||
|
||||
* [EAV](More/EAV) [:notebook:](https://en.wikipedia.org/wiki/Entity%E2%80%93attribute%E2%80%93value_model)
|
||||
* [Repository](More/Repository)
|
||||
* [ServiceLocator](More/ServiceLocator) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern) (is considered an anti-pattern! :no_entry:)
|
||||
* [ServiceLocator](More/ServiceLocator) [:notebook:](http://en.wikipedia.org/wiki/Service_locator_pattern)
|
||||
|
Loading…
x
Reference in New Issue
Block a user