Documentation

CacheWarmer
in package
implements CacheWarmerInterface

FinalYes
Tags
author

Javier Eguiluz javier.eguiluz@gmail.com

Table of Contents

Interfaces

CacheWarmerInterface
Interface for classes able to warm up the cache.

Constants

DASHBOARD_ROUTES_CACHE  = 'easyadmin/routes-dashboard.php'

Properties

$router  : RouterInterface

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

Methods

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
bool

warmUp()

public warmUp(string $cacheDir) : array<string|int, mixed>
Parameters
$cacheDir : string
Return values
array<string|int, mixed>

        
On this page

Search results