no longer list Singleton and ServiceLocator as anti-pattern, still advise against it in examples

This commit is contained in:
Dominik Liebler 2020-04-17 13:36:04 +02:00
parent 7b847bdb21
commit 6a6b1bbeea
No known key found for this signature in database
GPG Key ID: DCE4AADEA26FD47B
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)