PHP 클래스 Sylius\Bundle\OrderBundle\Controller\OrderItemController

저자: Paweł Jędrzejewski ([email protected])
상속: extends Sylius\Bundle\ResourceBundle\Controller\ResourceController
파일 보기 프로젝트 열기: sylius/sylius

공개 메소드들

메소드 설명
addAction ( Request $request ) : Response
removeAction ( Request $request ) : Response

보호된 메소드들

메소드 설명
createAddToCartCommand ( Sylius\Component\Order\Model\OrderInterface $cart, Sylius\Component\Order\Model\OrderItemInterface $cartItem ) : Sylius\Bundle\OrderBundle\Controller\AddToCartCommandInterface
getCartManager ( ) : Doctrine\ORM\EntityManagerInterface
getCartSummaryRoute ( ) : string
getContext ( ) : Sylius\Component\Order\Context\CartContextInterface
getCurrentCart ( ) : Sylius\Component\Order\Model\OrderInterface
getFormFactory ( ) : Symfony\Component\Form\FormFactoryInterface
getOrderModifier ( ) : Sylius\Component\Order\Modifier\OrderModifierInterface
getOrderRepository ( ) : Doctrine\Common\Persistence\ObjectRepository
getQuantityModifier ( ) : Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface
redirectToCartSummary ( RequestConfiguration $configuration ) : RedirectResponse

메소드 상세

addAction() 공개 메소드

public addAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

createAddToCartCommand() 보호된 메소드

protected createAddToCartCommand ( Sylius\Component\Order\Model\OrderInterface $cart, Sylius\Component\Order\Model\OrderItemInterface $cartItem ) : Sylius\Bundle\OrderBundle\Controller\AddToCartCommandInterface
$cart Sylius\Component\Order\Model\OrderInterface
$cartItem Sylius\Component\Order\Model\OrderItemInterface
리턴 Sylius\Bundle\OrderBundle\Controller\AddToCartCommandInterface

getCartManager() 보호된 메소드

protected getCartManager ( ) : Doctrine\ORM\EntityManagerInterface
리턴 Doctrine\ORM\EntityManagerInterface

getCartSummaryRoute() 보호된 메소드

protected getCartSummaryRoute ( ) : string
리턴 string

getContext() 보호된 메소드

protected getContext ( ) : Sylius\Component\Order\Context\CartContextInterface
리턴 Sylius\Component\Order\Context\CartContextInterface

getCurrentCart() 보호된 메소드

protected getCurrentCart ( ) : Sylius\Component\Order\Model\OrderInterface
리턴 Sylius\Component\Order\Model\OrderInterface

getFormFactory() 보호된 메소드

protected getFormFactory ( ) : Symfony\Component\Form\FormFactoryInterface
리턴 Symfony\Component\Form\FormFactoryInterface

getOrderModifier() 보호된 메소드

protected getOrderModifier ( ) : Sylius\Component\Order\Modifier\OrderModifierInterface
리턴 Sylius\Component\Order\Modifier\OrderModifierInterface

getOrderRepository() 보호된 메소드

protected getOrderRepository ( ) : Doctrine\Common\Persistence\ObjectRepository
리턴 Doctrine\Common\Persistence\ObjectRepository

getQuantityModifier() 보호된 메소드

protected getQuantityModifier ( ) : Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface
리턴 Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface

redirectToCartSummary() 보호된 메소드

protected redirectToCartSummary ( RequestConfiguration $configuration ) : RedirectResponse
$configuration Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration
리턴 Symfony\Component\HttpFoundation\RedirectResponse

removeAction() 공개 메소드

public removeAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response