public function dispatchOrderPreCreatedEvent(
        CartInterface $cart
    ) {
        $orderPreCreatedEvent = new OrderPreCreatedEvent($cart);
        $this->eventDispatcher->dispatch(
            ElcodiCartEvents::ORDER_PRECREATED,
            $orderPreCreatedEvent
        );
    }
public function dispatchOrderPreCreatedEvent(
        CartInterface $cart
    ) {
        $orderPreCreatedEvent = new OrderPreCreatedEvent($cart);
        $this->eventDispatcher->dispatch(
            ElcodiCartEvents::ORDER_PRECREATED,
            $orderPreCreatedEvent
        );
    }
public function dispatchOrderPreCreatedEvent ( CartInterface $ cart ) { $ orderPreCreatedEvent = new OrderPreCreatedEvent ( $ cart ) ; $ this -> eventDispatcher -> dispatch ( ElcodiCartEvents :: ORDER_PRECREATED , $ orderPreCreatedEvent ) ; }
Event dispatched just before a Cart is converted to an Order.

@param CartInterface $cart Cart

@return $this Self object
Event dispatched just before a Cart is converted to an Order .