From: Ben Klang Date: Wed, 24 Mar 2010 21:09:05 +0000 (-0400) Subject: Shout: Use registry, not injector X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=64b235e1c4349dd9a460aee1107862ba2643bab2;p=horde.git Shout: Use registry, not injector --- diff --git a/shout/lib/Forms/DeviceForm.php b/shout/lib/Forms/DeviceForm.php index df4317f97..b9d8cc6a7 100644 --- a/shout/lib/Forms/DeviceForm.php +++ b/shout/lib/Forms/DeviceForm.php @@ -44,7 +44,7 @@ class DeviceDetailsForm extends Horde_Form { public function execute() { - $shout = $GLOBALS['injector']->getInstance('shout', 'application'); + $shout = $GLOBALS['registry']->getApiInstance('shout', 'application'); $action = $this->_vars->get('action'); $account = $this->_vars->get('account'); @@ -110,7 +110,7 @@ class DeviceDeleteForm extends Horde_Form function execute() { - $shout = $GLOBALS['injector']->getInstance('shout', 'application'); + $shout = $GLOBALS['registry']->getApiInstance('shout', 'application'); $account = $this->_vars->get('account'); $devid = $this->_vars->get('devid'); $shout->devices->deleteDevice($account, $devid); diff --git a/shout/lib/Forms/ExtensionForm.php b/shout/lib/Forms/ExtensionForm.php index 4c3acbaec..632911f60 100644 --- a/shout/lib/Forms/ExtensionForm.php +++ b/shout/lib/Forms/ExtensionForm.php @@ -21,9 +21,6 @@ class ExtensionDetailsForm extends Horde_Form { */ function __construct(&$vars) { - $shout = $GLOBALS['injector']->getInstance('shout', 'application'); - - $account = $_SESSION['shout']['curaccount']; $action = $vars->get('action'); if ($action == 'edit') { @@ -58,7 +55,7 @@ class ExtensionDetailsForm extends Horde_Form { */ function execute() { - $shout = $GLOBALS['injector']->getInstance('shout', 'application'); + $shout = $GLOBALS['registry']->getApiInstance('shout', 'application'); $extension = $this->_vars->get('extension'); $account = $this->_vars->get('account'); @@ -96,7 +93,7 @@ class ExtensionDeleteForm extends Horde_Form function execute() { - $shout = $GLOBALS['injector']->getInstance('shout', 'application'); + $shout = $GLOBALS['registry']->getApiInstance('shout', 'application'); $account = $this->_vars->get('account'); $extension = $this->_vars->get('extension'); $shout->extensions->deleteExtension($account, $extension); diff --git a/shout/lib/Forms/MenuForm.php b/shout/lib/Forms/MenuForm.php index f23e6e205..93a62c886 100644 --- a/shout/lib/Forms/MenuForm.php +++ b/shout/lib/Forms/MenuForm.php @@ -42,7 +42,7 @@ class MenuForm extends Horde_Form { public function execute() { - $shout = $GLOBALS['injector']->getInstance('shout', 'application'); + $shout = $GLOBALS['registry']->getApiInstance('shout', 'application'); $account = $_SESSION['shout']['curaccount']; @@ -79,7 +79,7 @@ class DeviceMenuForm extends Horde_Form function execute() { - $shout = $GLOBALS['injector']->getInstance('shout', 'application'); + $shout = $GLOBALS['registry']->getApiInstance('shout', 'application'); $account = $this->_vars->get('account'); $menu = $this->_vars->get('menu'); $shout->devices->deleteMenu($account, $menu);