public function dispatchCartPreLoadEvent(CartInterface $cart)
    {
        $this->eventDispatcher->dispatch(
            ElcodiCartEvents::CART_PRELOAD,
            new CartPreLoadEvent($cart)
        );

        return $this;
    }
public function dispatchCartPreLoadEvent(CartInterface $cart)
    {
        $this->eventDispatcher->dispatch(
            ElcodiCartEvents::CART_PRELOAD,
            new CartPreLoadEvent($cart)
        );

        return $this;
    }
public function dispatchCartPreLoadEvent ( CartInterface $ cart ) { $ this -> eventDispatcher -> dispatch ( ElcodiCartEvents :: CART_PRELOAD , new CartPreLoadEvent ( $ cart ) ) ; return $ this ; }
Dispatch cart event just before is loaded.

This event is dispatched while final elements on Cart environment
have not been calculated and completed.

This event should have all needed entity change, for example,
remove a cartLine if cannot be used in cart ( Product out of stock )

@param CartInterface $cart Cart

@return $this Self object
Dispatch cart event just before is loaded .