10000 Dispatch the proper event on OnRemoveEvent by gerfigna · Pull Request #1082 · elcodi/elcodi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 30, 2019. It is now read-only.

Dispatch the proper event on OnRemoveEvent #1082

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Elcodi\Component\Cart\Entity\Interfaces\CartLineInterface;
use Elcodi\Component\Cart\Event\CartLineOnAddEvent;
use Elcodi\Component\Cart\Event\CartLineOnEditEvent;
use Elcodi\Component\Cart\Event\CartLineOnRemoveEvent;
use Elcodi\Component\Core\EventDispatcher\Abstracts\AbstractEventDispatcher;

/**
Expand Down Expand Up @@ -89,7 +90,7 @@ public function dispatchCartLineOnRemoveEvent(
) {
$this->eventDispatcher->dispatch(
ElcodiCartEvents::CARTLINE_ONREMOVE,
new CartLineOnAddEvent(
new CartLineOnRemoveEvent(
$cart,
$cartLine
)
Expand Down
0