diff --git a/module/VuFind/config/module.config.php b/module/VuFind/config/module.config.php index aad0f174aca344c336b80f9fc2b375a3acaaa2cf..c4ece74f728dc61c0c7055266f4005212314134d 100644 --- a/module/VuFind/config/module.config.php +++ b/module/VuFind/config/module.config.php @@ -315,7 +315,7 @@ $config = array( ), 'invokables' => array( 'VuFind\AuthManager' => 'VuFind\Auth\Manager', - 'cart' => 'VuFind\Cart', + 'VuFind\Cart' => 'VuFind\Cart', 'cachemanager' => 'VuFind\Cache\Manager', 'mailer' => 'VuFind\Mailer', 'recordloader' => 'VuFind\Record\Loader', diff --git a/module/VuFind/src/VuFind/Controller/AjaxController.php b/module/VuFind/src/VuFind/Controller/AjaxController.php index a51c523aa7c2aa712bafd6264f02dc8027849332..3069516272fc80f192996e2f377c9fa4f8ebde2d 100644 --- a/module/VuFind/src/VuFind/Controller/AjaxController.php +++ b/module/VuFind/src/VuFind/Controller/AjaxController.php @@ -1176,7 +1176,7 @@ class AjaxController extends AbstractBase self::STATUS_ERROR ); } - $this->getServiceLocator()->get('Cart')->removeItems($ids); + $this->getServiceLocator()->get('VuFind\Cart')->removeItems($ids); return $this->output(array('delete' => true), self::STATUS_OK); } diff --git a/module/VuFind/src/VuFind/Controller/CartController.php b/module/VuFind/src/VuFind/Controller/CartController.php index e29392b775c75abc2b2adfba3c4c9f9b35093817..6efe3d8f96b30ea2f4ce061a1582b788d1a0c937 100644 --- a/module/VuFind/src/VuFind/Controller/CartController.php +++ b/module/VuFind/src/VuFind/Controller/CartController.php @@ -59,7 +59,7 @@ class CartController extends AbstractBase */ protected function getCart() { - return $this->getServiceLocator()->get('Cart'); + return $this->getServiceLocator()->get('VuFind\Cart'); } /** diff --git a/module/VuFind/src/VuFind/Theme/Root/Helper/Cart.php b/module/VuFind/src/VuFind/Theme/Root/Helper/Cart.php index 4fb2081cd2c2252e6b3e571060acad9a5fd4fb22..29fe5e0390355961de6c9cc41a1692b106447199 100644 --- a/module/VuFind/src/VuFind/Theme/Root/Helper/Cart.php +++ b/module/VuFind/src/VuFind/Theme/Root/Helper/Cart.php @@ -45,6 +45,6 @@ class Cart extends AbstractServiceLocator */ public function __invoke() { - return $this->getServiceLocator()->get('Cart'); + return $this->getServiceLocator()->get('VuFind\Cart'); } } \ No newline at end of file