diff --git a/Registry/README.md b/Registry/README.md new file mode 100644 index 0000000..39a2661 --- /dev/null +++ b/Registry/README.md @@ -0,0 +1,11 @@ +# Registry + +## Purpose + +To implement a central storage for objects often used throughout the application, is typically implemented using +an abstract class with only static methods (or using the Singleton pattern) + +## Examples + +* Zend Framework: `Zend_Registry` holds the application's logger object, front controller etc. +* Yii Framework: `CWebApplication` holds all the application components, such as `CWebUser`, `CUrlManager`, etc. diff --git a/Registry/Registry.php b/Registry/Registry.php index 020398a..11df8d6 100644 --- a/Registry/Registry.php +++ b/Registry/Registry.php @@ -1,18 +1,9 @@