CachingFactoryDecorator

class CachingFactoryDecorator implements ChoiceListFactoryInterface Caches the choice lists created by the decorated factory. Methods static string generateHash(mixed $value, string $namespace = '') Generates a SHA-256 hash for the given value. __construct(ChoiceListFactoryInterface $decoratedFactory) Decorates the given factory. ChoiceListFactoryInterface getDecoratedFactory() Returns the decorated factory. ChoiceListInterface createListFromChoices(array|Traversable $choi

CacheWarmerInterface

interface CacheWarmerInterface implements WarmableInterface Interface for classes able to warm up the cache. Methods warmUp(string $cacheDir) Warms up the cache. from WarmableInterface bool isOptional() Checks whether this warmer is optional or not. Details warmUp(string $cacheDir) Warms up the cache. Parameters string $cacheDir The cache directory bool isOptional() Checks whether this warmer is

CacheWarmerAggregate::enableOptionalWarmers()

enableOptionalWarmers()

CacheWarmerAggregate::add()

add(CacheWarmerInterface $warmer) Parameters CacheWarmerInterface $warmer

CacheWarmerAggregate::isOptional()

bool isOptional() Checks whether this warmer is optional or not. Return Value bool true if the warmer is optional, false otherwise

CacheWarmerAggregate::setWarmers()

setWarmers(array $warmers) Parameters array $warmers

CacheWarmerAggregate

class CacheWarmerAggregate implements CacheWarmerInterface Aggregates several cache warmers into a single one. Methods __construct(array $warmers = array()) enableOptionalWarmers() warmUp(string $cacheDir) Warms up the cache. bool isOptional() Checks whether this warmer is optional or not. setWarmers(array $warmers) add(CacheWarmerInterface $warmer) Details __construct(array $warmers = array()) Parameters array $wa

CacheWarmerAggregate::warmUp()

warmUp(string $cacheDir) Warms up the cache. Parameters string $cacheDir The cache directory

CachePoolPass::getServiceProvider()

static getServiceProvider(ContainerBuilder $container, $name) Parameters ContainerBuilder $container $name

CachePoolPass::process()

process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container