[Solar-svn] Revision 2991

pmjones at solarphp.com pmjones at solarphp.com
Tue Mar 11 17:24:22 CDT 2008


Solar_Registry: Enforce singleton pattern.


Modified: trunk/Solar/Registry.php
===================================================================
--- trunk/Solar/Registry.php	2008-03-11 13:40:05 UTC (rev 2990)
+++ trunk/Solar/Registry.php	2008-03-11 22:24:22 UTC (rev 2991)
@@ -28,6 +28,13 @@
     
     /**
      * 
+     * Constructor is disabled to enforce a singleton pattern.
+     * 
+     */
+    final private function __construct() {}
+    
+    /**
+     * 
      * Accesses an object in the registry.
      * 
      * @param string $name The registered name.




More information about the Solar-svn mailing list