I don't see a reason why the ctor has to be protected. Sometimes we really just
authorJan Schneider <jan@horde.org>
Thu, 18 Nov 2010 10:07:47 +0000 (11:07 +0100)
committerJan Schneider <jan@horde.org>
Thu, 18 Nov 2010 10:09:43 +0000 (11:09 +0100)
need a registry object, not a complete application environment.

framework/Core/lib/Horde/Registry.php

index 935e987..c2e0659 100644 (file)
@@ -250,7 +250,7 @@ class Horde_Registry
      *
      * @throws Horde_Exception
      */
-    protected function __construct($session_flags, $cache_limiter)
+    public function __construct($session_flags = 0, $cache_limiter = null)
     {
         /* Define autoloader callbacks. */
         $callbacks = array(