TwigInitializeListener implements EventSubscriberInterface
Table of Contents
$initialized | bool | |
---|---|---|
$twig | Environment | |
$baseInfoRepository | BaseInfoRepository | |
$deviceTypeRepository | DeviceTypeRepository | |
$pageRepository | PageRepository | |
$pageLayoutRepository | PageLayoutRepository | |
$blockPositionRepository | BlockPositionRepository | |
$requestContext | Context | |
$authorityRoleRepository | AuthorityRoleRepository | |
$eccubeConfig | EccubeConfig | |
$mobileDetector | MobileDetector | |
$router | UrlGeneratorInterface | |
$layoutRepository | LayoutRepository | |
__construct() | TwigInitializeListener constructor. | mixed |
onKernelRequest() | mixed | |
setFrontVariables() | mixed | |
setAdminGlobals() | mixed | |
getDisplayEccubeNav() | URLに対する権限有無チェックして表示するNavを返す | array |
getSubscribedEvents() | {@inheritdoc} | mixed |
Properties
$initialized
protected
bool
$initialized
= false
$twig
protected
Environment
$twig
$baseInfoRepository
protected
BaseInfoRepository
$baseInfoRepository
$deviceTypeRepository
protected
DeviceTypeRepository
$deviceTypeRepository
$pageRepository
protected
PageRepository
$pageRepository
$pageLayoutRepository
protected
PageLayoutRepository
$pageLayoutRepository
$blockPositionRepository
protected
BlockPositionRepository
$blockPositionRepository
$requestContext
protected
Context
$requestContext
$authorityRoleRepository
private
AuthorityRoleRepository
$authorityRoleRepository
$eccubeConfig
private
EccubeConfig
$eccubeConfig
$mobileDetector
private
MobileDetector
$mobileDetector
$router
private
UrlGeneratorInterface
$router
$layoutRepository
private
LayoutRepository
$layoutRepository
Methods
__construct()
TwigInitializeListener constructor.
public
__construct(
$twig :
Environment
, $baseInfoRepository :
BaseInfoRepository
, $pageRepository :
PageRepository
, $pageLayoutRepository :
PageLayoutRepository
, $blockPositionRepository :
BlockPositionRepository
, $deviceTypeRepository :
DeviceTypeRepository
, $authorityRoleRepository :
AuthorityRoleRepository
, $eccubeConfig :
EccubeConfig
, $context :
Context
, $mobileDetector :
MobileDetector
, $router :
UrlGeneratorInterface
, $layoutRepository :
LayoutRepository
)
: mixed
Parameters
- $twig : Environment
- $baseInfoRepository : BaseInfoRepository
- $pageRepository : PageRepository
- $pageLayoutRepository : PageLayoutRepository
- $blockPositionRepository : BlockPositionRepository
- $deviceTypeRepository : DeviceTypeRepository
- $authorityRoleRepository : AuthorityRoleRepository
- $eccubeConfig : EccubeConfig
- $context : Context
- $mobileDetector : MobileDetector
- $router : UrlGeneratorInterface
- $layoutRepository : LayoutRepository
Return values
mixedonKernelRequest()
public
onKernelRequest(
$event :
GetResponseEvent
)
: mixed
Parameters
- $event : GetResponseEvent
Tags
Return values
mixedsetFrontVariables()
public
setFrontVariables(
$event :
GetResponseEvent
)
: mixed
Parameters
- $event : GetResponseEvent
Tags
Return values
mixedsetAdminGlobals()
public
setAdminGlobals(
$event :
GetResponseEvent
)
: mixed
Parameters
- $event : GetResponseEvent
Return values
mixedgetDisplayEccubeNav()
URLに対する権限有無チェックして表示するNavを返す
private
getDisplayEccubeNav(
$parentNav :
array
, $AuthorityRoles :
\Eccube\Entity\AuthorityRole[]
, $baseUrl :
string
)
: array
Parameters
- $parentNav : array
- $AuthorityRoles : \Eccube\Entity\AuthorityRole[]
- $baseUrl : string
Return values
arraygetSubscribedEvents()
{@inheritdoc}
public
static getSubscribedEvents(
)
: mixed