CacheWarmer
in package
implements
CacheWarmerInterface
FinalYes
Tags
Table of Contents
Interfaces
- CacheWarmerInterface
- Interface for classes able to warm up the cache.
Constants
- DASHBOARD_ROUTES_CACHE = 'easyadmin/routes-dashboard.php'
Properties
Methods
- __construct() : mixed
- isOptional() : bool
- Checks whether this warmer is optional or not.
- warmUp() : array<string|int, mixed>
Constants
DASHBOARD_ROUTES_CACHE
public
mixed
DASHBOARD_ROUTES_CACHE
= 'easyadmin/routes-dashboard.php'
Properties
$router
private
RouterInterface
$router
Methods
__construct()
public
__construct(RouterInterface $router) : mixed
Parameters
- $router : RouterInterface
isOptional()
Checks whether this warmer is optional or not.
public
isOptional() : bool
Optional warmers can be ignored on certain conditions.
A warmer should return true if the cache can be generated incrementally and on-demand.
Return values
boolwarmUp()
public
warmUp(string $cacheDir) : array<string|int, mixed>
Parameters
- $cacheDir : string