update changelog and fix cs
This commit is contained in:
@@ -26,7 +26,6 @@ namespace Thelia\Action;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
use Thelia\Cart\CartTrait;
|
||||
use Thelia\Core\Event\Cart\CartEvent;
|
||||
use Thelia\Core\Event\Order\OrderAddressEvent;
|
||||
use Thelia\Core\Event\Order\OrderEvent;
|
||||
use Thelia\Core\Event\Order\OrderManualEvent;
|
||||
@@ -53,7 +52,6 @@ use Thelia\Model\OrderStatus;
|
||||
use Thelia\Model\OrderStatusQuery;
|
||||
use Thelia\Tools\I18n;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Class Order
|
||||
@@ -157,7 +155,6 @@ class Order extends BaseAction implements EventSubscriberInterface
|
||||
|
||||
$con->beginTransaction();
|
||||
|
||||
|
||||
$placedOrder = $sessionOrder->copy();
|
||||
$placedOrder->setDispatcher($dispatcher);
|
||||
|
||||
@@ -307,8 +304,8 @@ class Order extends BaseAction implements EventSubscriberInterface
|
||||
/**
|
||||
* Create an order outside of the front-office context, e.g. manually from the back-office.
|
||||
*/
|
||||
public function createManual(OrderManualEvent $event) {
|
||||
|
||||
public function createManual(OrderManualEvent $event)
|
||||
{
|
||||
$placedOrder = $this->createOrder(
|
||||
$event->getDispatcher(),
|
||||
$event->getOrder(),
|
||||
@@ -339,7 +336,6 @@ class Order extends BaseAction implements EventSubscriberInterface
|
||||
|
||||
$event->getDispatcher()->dispatch(TheliaEvents::ORDER_BEFORE_PAYMENT, new OrderEvent($placedOrder));
|
||||
|
||||
|
||||
/* but memorize placed order */
|
||||
$event->setOrder(new \Thelia\Model\Order());
|
||||
$event->setPlacedOrder($placedOrder);
|
||||
|
||||
Reference in New Issue
Block a user