Merge branch 'master' into fix_cart_database_timestamps

This commit is contained in:
Patrick
2019-03-01 15:29:33 +01:00
committed by GitHub
6 changed files with 39 additions and 29 deletions

View File

@@ -164,7 +164,7 @@ class Cart
$content->put($item->rowId, $item);
$this->events->fire('cart.added', $item);
$this->events->dispatch('cart.added', $item);
$this->session->put($this->instance, $content);
@@ -210,7 +210,7 @@ class Cart
$content->put($cartItem->rowId, $cartItem);
}
$this->events->fire('cart.updated', $cartItem);
$this->events->dispatch('cart.updated', $cartItem);
$this->session->put($this->instance, $content);
@@ -232,7 +232,7 @@ class Cart
$content->pull($cartItem->rowId);
$this->events->fire('cart.removed', $cartItem);
$this->events->dispatch('cart.removed', $cartItem);
$this->session->put($this->instance, $content);
}
@@ -599,7 +599,7 @@ class Cart
'updated_at' => date('Y-m-d H:i:s'),
]);
$this->events->fire('cart.stored');
$this->events->dispatch('cart.stored');
}
/**
@@ -634,7 +634,7 @@ class Cart
$content->put($cartItem->rowId, $cartItem);
}
$this->events->fire('cart.restored');
$this->events->dispatch('cart.restored');
$this->session->put($this->instance, $content);