From: Michael J. Rubinsky Date: Thu, 7 Oct 2010 22:07:47 +0000 (-0400) Subject: ...and finally, remove the last binder. Move AuthSignup to use a factory binder. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=52721373f1d94edff24a3e119043b68d60f8ce61;p=horde.git ...and finally, remove the last binder. Move AuthSignup to use a factory binder. --- diff --git a/framework/Core/lib/Horde/Core/Binder/AuthSignup.php b/framework/Core/lib/Horde/Core/Binder/AuthSignup.php deleted file mode 100644 index 78fc2d689..000000000 --- a/framework/Core/lib/Horde/Core/Binder/AuthSignup.php +++ /dev/null @@ -1,22 +0,0 @@ - 'Horde_Core_Autoloader_Callback_Nls' ); - /* Define binders. */ - $binders = array( - 'Horde_Core_Auth_Signup' => new Horde_Core_Binder_AuthSignup(), - ); - /* Define factories. */ $factories = array( 'Horde_Alarm' => array( @@ -275,6 +270,10 @@ class Horde_Registry 'Horde_Core_Controller_RequestMapper', 'getRequestConfiguration', ), + 'Horde_Core_Auth_Signup' => array( + 'Horde_Core_Factory_AuthSignup', + 'create', + ), 'Horde_Db_Adapter' => array( 'Horde_Core_Factory_DbBase', 'create', @@ -373,9 +372,6 @@ class Horde_Registry /* Setup injector. */ $GLOBALS['injector'] = $injector = new Horde_Injector(new Horde_Injector_TopLevel()); - foreach ($binders as $key => $val) { - $injector->addBinder($key, $val); - } foreach ($factories as $key => $val) { $injector->bindFactory($key, $val[0], $val[1]); } diff --git a/framework/Core/package.xml b/framework/Core/package.xml index 4ed31e19e..8d6cfeda9 100644 --- a/framework/Core/package.xml +++ b/framework/Core/package.xml @@ -109,9 +109,6 @@ Application Framework. - - - @@ -417,7 +414,6 @@ Application Framework. -