public function dispatchShippingCollectionEvent(CartInterface $cart)
    {
        $event = new ShippingCollectionEvent($cart);

        $this
            ->eventDispatcher
            ->dispatch(
                ElcodiShippingEvents::SHIPPING_COLLECT,
                $event
            );

        return $event->getShippingMethods();
    }
public function dispatchShippingCollectionEvent(CartInterface $cart)
    {
        $event = new ShippingCollectionEvent($cart);

        $this
            ->eventDispatcher
            ->dispatch(
                ElcodiShippingEvents::SHIPPING_COLLECT,
                $event
            );

        return $event->getShippingMethods();
    }
public function dispatchShippingCollectionEvent ( CartInterface $ cart ) { $ event = new ShippingCollectionEvent ( $ cart ) ; $ this -> eventDispatcher -> dispatch ( ElcodiShippingEvents :: SHIPPING_COLLECT , $ event ) ; return $ event -> getShippingMethods ( ) ; }
Dispatch shipping methods collection.

@param CartInterface $cart Cart

@return ShippingMethod[] Shipping methods
Dispatch shipping methods collection .