PHP 클래스 Elcodi\Store\CartBundle\EventListener\ShippingApplianceEventListener

파일 보기 프로젝트 열기: elcodi/bamboo

공개 메소드들

메소드 설명
__construct ( Elcodi\Component\Cart\EventDispatcher\CartEventDispatcher $cartEventDispatcher, Elcodi\Component\Shipping\Wrapper\ShippingWrapper $shippingWrapper, Elcodi\Component\Shipping\Resolver\ShippingResolver $shippingResolver ) Construct
loadCheapestShippingMethod ( Elcodi\Component\Cart\Event\CartOnLoadEvent $event ) Loads cheapest shipping method if exists
removeInvalidShippingMethod ( Elcodi\Component\Cart\Event\CartOnLoadEvent $event ) Remove shipping method from cart if this is not valid anymore

메소드 상세

__construct() 공개 메소드

Construct
public __construct ( Elcodi\Component\Cart\EventDispatcher\CartEventDispatcher $cartEventDispatcher, Elcodi\Component\Shipping\Wrapper\ShippingWrapper $shippingWrapper, Elcodi\Component\Shipping\Resolver\ShippingResolver $shippingResolver )
$cartEventDispatcher Elcodi\Component\Cart\EventDispatcher\CartEventDispatcher Cart Event Dispatcher
$shippingWrapper Elcodi\Component\Shipping\Wrapper\ShippingWrapper Shipping wrapper
$shippingResolver Elcodi\Component\Shipping\Resolver\ShippingResolver Shipping Method Resolver

loadCheapestShippingMethod() 공개 메소드

Loads cheapest shipping method if exists
public loadCheapestShippingMethod ( Elcodi\Component\Cart\Event\CartOnLoadEvent $event )
$event Elcodi\Component\Cart\Event\CartOnLoadEvent Event

removeInvalidShippingMethod() 공개 메소드

Remove shipping method from cart if this is not valid anymore
public removeInvalidShippingMethod ( Elcodi\Component\Cart\Event\CartOnLoadEvent $event )
$event Elcodi\Component\Cart\Event\CartOnLoadEvent Event