AdminMenuCacheRepository
in package
implements
AdminMenuCacheRepository
Class AdminMenuCacheRepository
Interfaces, Classes and Traits
- AdminMenuCacheRepository
- Interface AdminMenuCacheRepositoryInterface
Table of Contents
- $cache : MenuCache
- $dispatcher : EventDispatcherInterface
- $filterFactory : FilterFactory
- $languageService : LanguageService
- $mapper : MenuMapper
- __construct() : mixed
- AdminMenuCacheRepository constructor.
- buildCache() : void
- Rebuilds the gambio admin menu cache file.
- deleteCache() : void
- Deletes the menu cache.
- getCache() : array<string|int, mixed>
- Provides cached gambio admin menu.
- hasCache() : bool
- Checks if admin menu cache file is available.
Properties
$cache
private
MenuCache
$cache
$dispatcher
private
EventDispatcherInterface
$dispatcher
$filterFactory
private
FilterFactory
$filterFactory
$languageService
private
LanguageService
$languageService
$mapper
private
MenuMapper
$mapper
Methods
__construct()
AdminMenuCacheRepository constructor.
public
__construct(MenuCache $cache, MenuMapper $mapper, FilterFactory $filterFactory, LanguageService $languageService, EventDispatcherInterface $dispatcher) : mixed
Parameters
- $cache : MenuCache
- $mapper : MenuMapper
- $filterFactory : FilterFactory
- $languageService : LanguageService
- $dispatcher : EventDispatcherInterface
Return values
mixed —buildCache()
Rebuilds the gambio admin menu cache file.
public
buildCache(MenuGroups $groups, array<string|int, mixed> $menuData) : void
Parameters
- $groups : MenuGroups
- $menuData : array<string|int, mixed>
Tags
Return values
void —deleteCache()
Deletes the menu cache.
public
deleteCache() : void
Tags
Return values
void —getCache()
Provides cached gambio admin menu.
public
getCache() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —hasCache()
Checks if admin menu cache file is available.
public
hasCache() : bool