mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 12:10:10 +02:00
create TocTree index
This commit is contained in:
@@ -5,13 +5,13 @@ Multiton
|
||||
MAINTAINABILITY USE DEPENDENCY INJECTION!**
|
||||
|
||||
Purpose
|
||||
=======
|
||||
-------
|
||||
|
||||
To have only a list of named instances that are used, like a singleton
|
||||
but with n instances.
|
||||
|
||||
Examples
|
||||
========
|
||||
--------
|
||||
|
||||
- 2 DB Connectors, e.g. one for MySQL, the other for SQLite
|
||||
- multiple Loggers (one for debug messages, one for errors)
|
||||
|
@@ -8,29 +8,15 @@ could result in design problems or added complexity to the design.
|
||||
Creational design patterns solve this problem by somehow controlling
|
||||
this object creation.
|
||||
|
||||
- `AbstractFactory <AbstractFactory>`__
|
||||
`:notebook: <http://en.wikipedia.org/wiki/Abstract_factory_pattern>`__
|
||||
- `Builder <Builder>`__
|
||||
`:notebook: <http://en.wikipedia.org/wiki/Builder_pattern>`__
|
||||
- `FactoryMethod <FactoryMethod>`__
|
||||
`:notebook: <http://en.wikipedia.org/wiki/Factory_method_pattern>`__
|
||||
- `Multiton <Multiton>`__ (is considered an anti-pattern! :no\_entry:)
|
||||
- `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:)
|
||||
- `StaticFactory <StaticFactory>`__
|
||||
.. toctree::
|
||||
:titlesonly:
|
||||
|
||||
Code
|
||||
----
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational
|
||||
AbstractFactory/index
|
||||
Builder/index
|
||||
FactoryMethod/index
|
||||
Multiton/index
|
||||
Pool/index
|
||||
Prototype/index
|
||||
SimpleFactory/index
|
||||
Singleton/index
|
||||
StaticFactory/index
|
Reference in New Issue
Block a user