RouterCacheWarmer
in package
implements
CacheWarmerInterface, ServiceSubscriberInterface
Generates the router matcher and generator classes.
Tags
Interfaces, Classes and Traits
- CacheWarmerInterface
- Interface for classes able to warm up the cache.
- ServiceSubscriberInterface
- A ServiceSubscriber exposes its dependencies via the static {@link getSubscribedServices} method.
Table of Contents
- $container : mixed
- __construct() : mixed
- getSubscribedServices() : array<string|int, string>
- Returns an array of service types required by such instances, optionally keyed by the service names used internally.
- isOptional() : bool
- Checks whether this warmer is optional or not.
- warmUp() : array<string|int, mixed>
- {@inheritdoc}
Properties
$container
private
mixed
$container
Methods
__construct()
public
__construct(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
Return values
mixed —getSubscribedServices()
Returns an array of service types required by such instances, optionally keyed by the service names used internally.
public
static getSubscribedServices() : array<string|int, string>
Return values
array<string|int, string> —The required service types, optionally keyed by service names
isOptional()
Checks whether this warmer is optional or not.
public
isOptional() : bool
Return values
bool —warmUp()
{@inheritdoc}
public
warmUp(string $cacheDir) : array<string|int, mixed>
Parameters
- $cacheDir : string