From fc781c891a0da3e8976e94b13fd6b9e56ab56fb3 Mon Sep 17 00:00:00 2001 From: Trismegiste Date: Sun, 12 May 2013 20:09:13 +0200 Subject: [PATCH] comments to explain where the problem is --- ChainOfResponsibilities/ChainOfResponsibilities.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ChainOfResponsibilities/ChainOfResponsibilities.php b/ChainOfResponsibilities/ChainOfResponsibilities.php index 82ba06e..5b2686d 100644 --- a/ChainOfResponsibilities/ChainOfResponsibilities.php +++ b/ChainOfResponsibilities/ChainOfResponsibilities.php @@ -10,6 +10,8 @@ namespace DesignPatterns; * in the chain and so forth * * Examples: + * - logging framework + * - spam filter * - Caching: first object is an instance of e.g. a Memcached Interface, if that "misses" it delegates the call to the * Database Interface * - Yii Framework: CFilterChain is a chain of controller action filters. the executing point is passed from one filter @@ -17,6 +19,8 @@ namespace DesignPatterns; * */ +// the idea is good but in general, the Handler component in this pattern +// is an abstract class which makes much more of the work interface KeyValueStorage { public function get($key);