From 59001ecf9289325a566441a008b1e9840f415ae3 Mon Sep 17 00:00:00 2001 From: Dominik Liebler Date: Tue, 24 Sep 2013 14:07:04 +0200 Subject: [PATCH] README Registry --- Registry/README.md | 11 +++++++++++ Registry/Registry.php | 13 ++----------- Registry/index.php | 2 +- 3 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 Registry/README.md 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 @@