MypageController extends AbstractController
Table of Contents
Properties
$productRepository
protected
ProductRepository
$productRepository
$customerFavoriteProductRepository
protected
CustomerFavoriteProductRepository
$customerFavoriteProductRepository
$BaseInfo
protected
BaseInfo
$BaseInfo
$cartService
protected
CartService
$cartService
$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()
MypageController constructor.
public
__construct(
$orderRepository :
OrderRepository
, $customerFavoriteProductRepository :
CustomerFavoriteProductRepository
, $cartService :
CartService
, $baseInfoRepository :
BaseInfoRepository
, $purchaseFlow :
PurchaseFlow
)
: mixed
Parameters
- $orderRepository : OrderRepository
- $customerFavoriteProductRepository : CustomerFavoriteProductRepository
- $cartService : CartService
- $baseInfoRepository : BaseInfoRepository
- $purchaseFlow : PurchaseFlow
Return values
mixedlogin()
ログイン画面.
public
login(
$request :
Request
, $utils :
AuthenticationUtils
)
: mixed
Parameters
- $request : Request
- $utils : AuthenticationUtils
Tags
Return values
mixedindex()
マイページ.
public
index(
$request :
Request
, $paginator :
Paginator
)
: mixed
Parameters
- $request : Request
- $paginator : Paginator
Tags
Return values
mixedhistory()
購入履歴詳細を表示する.
public
history(
$request :
Request
, $order_no :
mixed
)
: mixed
Parameters
- $request : Request
- $order_no : mixed
Tags
Return values
mixedorder()
再購入を行う.
public
order(
$request :
Request
, $order_no :
mixed
)
: mixed
Parameters
- $request : Request
- $order_no : mixed
Tags
Return values
mixedfavorite()
お気に入り商品を表示する.
public
favorite(
$request :
Request
, $paginator :
Paginator
)
: mixed
Parameters
- $request : Request
- $paginator : Paginator
Tags
Return values
mixeddelete()
お気に入り商品を削除する.
public
delete(
$request :
Request
, $Product :
Product
)
: mixed
Parameters
- $request : Request
- $Product : Product
Tags
Return values
mixedsetEccubeConfig()
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.