class CatalogueCacheFactory implements ConfigCacheFactoryInterface

Hands the translator a cache that knows which translations its catalogue was built from. See {CatalogueCache}.

The revision is resolved lazily, per call: the translator initialises a catalogue the first time one is needed, by which point every extension has registered its translation files — asking any earlier would describe a smaller set than the catalogue is actually built from.

Methods

__construct(Closure $revision)

No description

ConfigCacheInterface
cache(string $file, callable $callback)

No description

Details

__construct(Closure $revision)

Parameters

Closure $revision

ConfigCacheInterface cache(string $file, callable $callback)

Parameters

string $file
callable $callback

Return Value

ConfigCacheInterface