Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 580e6ec

Browse files
author
Dominik Liebler
committed
README Mediator
1 parent 0251304 commit 580e6ec

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

Mediator/Mediator.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,7 @@
77
/**
88
* Mediator is the concrete Mediator for this design pattern.
99
*
10-
* This pattern provides an easy to decouple many components working together.
11-
* It is a good alternative over Observer IF you have a "central intelligence",
12-
* like a controller (but not in the sense of the MVC).
13-
*
14-
* All components (called Colleague) are only coupled to the MediatorInterface and
15-
* it is a good thing because in OOP, one good friend is better than many. This
16-
* is the key-feature of this pattern.
17-
*
18-
* In this example, I have made a "Hello World" with the Mediator Pattern, have fun (^_^)
10+
* In this example, I have made a "Hello World" with the Mediator Pattern.
1911
*/
2012
class Mediator implements MediatorInterface
2113
{

Mediator/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Mediator
2+
3+
## Purpose
4+
5+
This pattern provides an easy to decouple many components working together.
6+
It is a good alternative over Observer IF you have a "central intelligence",
7+
like a controller (but not in the sense of the MVC).
8+
9+
All components (called Colleague) are only coupled to the MediatorInterface and
10+
it is a good thing because in OOP, one good friend is better than many. This
11+
is the key-feature of this pattern.

0 commit comments

Comments
 (0)