ShippingMultipleController extends AbstractShoppingController
Table of Contents
Properties
$prefRepository
protected
PrefRepository
$prefRepository
$orderItemTypeRepository
protected
OrderItemTypeRepository
$orderItemTypeRepository
$orderHelper
protected
OrderHelper
$orderHelper
$cartService
protected
CartService
$cartService
$cartPurchaseFlow
protected
PurchaseFlow
$cartPurchaseFlow
$orderRepository
protected
OrderRepository
$orderRepository
$purchaseFlow
protected
PurchaseFlow
$purchaseFlow
$eccubeConfig
protected
EccubeConfig
$eccubeConfig
$entityManager
protected
EntityManagerInterface
$entityManager
$translator
protected
TranslatorInterface
$translator
$formFactory
protected
FormFactoryInterface
$formFactory
$eventDispatcher
protected
EventDispatcherInterface
$eventDispatcher
$session
protected
Session
$session
Methods
__construct()
ShippingMultipleController constructor.
public
__construct(
$prefRepository :
PrefRepository
, $orderRepository :
OrderRepository
, $orderItemTypeRepository :
OrderItemTypeRepository
, $orderHelper :
OrderHelper
, $cartService :
CartService
, $cartPurchaseFlow :
PurchaseFlow
)
: mixed
Parameters
- $prefRepository : PrefRepository
- $orderRepository : OrderRepository
- $orderItemTypeRepository : OrderItemTypeRepository
- $orderHelper : OrderHelper
- $cartService : CartService
- $cartPurchaseFlow : PurchaseFlow
Return values
mixedindex()
複数配送処理
public
index(
$request :
Request
)
: mixed
Parameters
- $request : Request
Tags
Return values
mixedshippingMultipleEdit()
複数配送設定時の新規お届け先の設定
public
shippingMultipleEdit(
$request :
Request
)
: mixed
会員ログイン時は会員のお届け先に追加する 非会員時はセッションに追加する
Parameters
- $request : Request
Tags
Return values
mixedsetPurchaseFlow()
public
setPurchaseFlow(
$shoppingPurchaseFlow :
PurchaseFlow
)
: mixed
Parameters
- $shoppingPurchaseFlow : PurchaseFlow
Tags
Return values
mixedexecutePurchaseFlow()
protected
executePurchaseFlow(
$itemHolder :
ItemHolderInterface
[, $returnResponse :
bool
= true ]
)
: PurchaseFlowResult|RedirectResponse
Parameters
- $itemHolder : ItemHolderInterface
- $returnResponse : bool = true
レスポンスを返すかどうか. falseの場合はPurchaseFlowResultを返す.
Return values
PurchaseFlowResult|RedirectResponsesetEccubeConfig()
public
setEccubeConfig(
$eccubeConfig :
EccubeConfig
)
: mixed
Parameters
- $eccubeConfig : EccubeConfig
Tags
Return values
mixedsetEntityManager()
public
setEntityManager(
$entityManager :
EntityManagerInterface
)
: mixed
Parameters
- $entityManager : EntityManagerInterface
Tags
Return values
mixedsetTranslator()
public
setTranslator(
$translator :
TranslatorInterface
)
: mixed
Parameters
- $translator : TranslatorInterface
Tags
Return values
mixedsetSession()
public
setSession(
$session :
SessionInterface
)
: mixed
Parameters
- $session : SessionInterface
Tags
Return values
mixedsetFormFactory()
public
setFormFactory(
$formFactory :
FormFactoryInterface
)
: mixed
Parameters
- $formFactory : FormFactoryInterface
Tags
Return values
mixedsetEventDispatcher()
public
setEventDispatcher(
$eventDispatcher :
EventDispatcherInterface
)
: mixed
Parameters
- $eventDispatcher : EventDispatcherInterface
Tags
Return values
mixedaddSuccess()
public
addSuccess(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddError()
public
addError(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddDanger()
public
addDanger(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddWarning()
public
addWarning(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddInfo()
public
addInfo(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedaddRequestError()
public
addRequestError(
$message :
mixed
[, $namespace :
mixed
= 'front' ]
)
: mixed
Parameters
- $message : mixed
- $namespace : mixed = 'front'
Return values
mixedclearMessage()
public
clearMessage(
)
: mixed
Return values
mixeddeleteMessage()
public
deleteMessage(
)
: mixed
Return values
mixedsetLoginTargetPath()
public
setLoginTargetPath(
$targetPath :
string
[, $namespace :
mixed
= null ]
)
: mixed
Parameters
- $targetPath : string
- $namespace : mixed = null
Return values
mixedforwardToRoute()
Forwards the request to another controller.
public
forwardToRoute(
$route :
string
[, $path :
array
= [] ]
[, $query :
array
= [] ]
)
: Response
Parameters
- $route : string
The name of the route
- $path : array = []
An array of path parameters
- $query : array = []
An array of query parameters
Return values
Response —A Response instance
isTokenValid()
Checks the validity of a CSRF token.
protected
isTokenValid(
)
: bool
if token is invalid, throws AccessDeniedHttpException.