public function dispatchPaymentCollectionEvent(CartInterface $cart = null)
    {
        $event = new PaymentCollectionEvent($cart);

        $this
            ->eventDispatcher
            ->dispatch(
                ElcodiPaymentEvents::PAYMENT_COLLECT,
                $event
            );

        return $event->getPaymentMethods();
    }
public function dispatchPaymentCollectionEvent(CartInterface $cart = null)
    {
        $event = new PaymentCollectionEvent($cart);

        $this
            ->eventDispatcher
            ->dispatch(
                ElcodiPaymentEvents::PAYMENT_COLLECT,
                $event
            );

        return $event->getPaymentMethods();
    }
public function dispatchPaymentCollectionEvent ( CartInterface $ cart = null ) { $ event = new PaymentCollectionEvent ( $ cart ) ; $ this -> eventDispatcher -> dispatch ( ElcodiPaymentEvents :: PAYMENT_COLLECT , $ event ) ; return $ event -> getPaymentMethods ( ) ; }
Dispatch payment methods collection.

@param CartInterface $cart Cart

@return PaymentMethod[] Payment methods
Dispatch payment methods collection .