All filters rewritten to throw FilterChainException
[core.git] / inc / classes / main / registry / class_Registry.php
index 243c2b49f5ad44488ee5792dae58a143371d54b3..d5ad6e6bb882a69baa697722107c0d31ec76c47f 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 /**
- * A registry for several data types
+ * A registry for several data types and objects. Objects should be added by
+ * addInstance() and therefore must implement the interface Registerable.
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
@@ -62,7 +63,7 @@ class Registry extends BaseFrameworkSystem implements Register {
                if (is_null(self::$registryInstance)) {
                        // Not yet, so create one
                        self::$registryInstance = new Registry();
-               }
+               } // END - if
 
                // Return the instance
                return self::$registryInstance;
@@ -126,7 +127,7 @@ class Registry extends BaseFrameworkSystem implements Register {
                // Is the instance there?
                if ($this->instanceExists($instanceKey)) {
                        $objectInstance = $this->instanceRegistry[$instanceKey];
-               }
+               } // END - if
 
                // Return the result
                return $objectInstance;