Documentation

TranslationsCacheWarmer
in package
implements CacheWarmerInterface, ServiceSubscriberInterface

Generates the catalogues for translations.

Tags
author

Xavier Leune xavier.leune@gmail.com

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
$translator  : 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, string>
{@inheritdoc}

Properties

Methods

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, string>
Parameters
$cacheDir : string
Return values
array<string|int, string>

Search results