Removes container from all Thelia actions, but Modules (#198)
This commit is contained in:
@@ -121,7 +121,7 @@ class CartController extends BaseFrontController
|
||||
*/
|
||||
protected function getCartEvent()
|
||||
{
|
||||
$cart = $this->getCart($this->getRequest());
|
||||
$cart = $this->getCart($this->getDispatcher(), $this->getRequest());
|
||||
|
||||
return new CartEvent($cart);
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ class CustomerController extends BaseFrontController
|
||||
|
||||
$this->processLogin($customerCreateEvent->getCustomer());
|
||||
|
||||
$cart = $this->getCart($this->getRequest());
|
||||
$cart = $this->getCart($this->getDispatcher(), $this->getRequest());
|
||||
if ($cart->getCartItems()->count() > 0) {
|
||||
$this->redirectToRoute('cart.view');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user