CacheWarmupCommand

class CacheWarmupCommand extends ContainerAwareCommand Warmup the cache. Methods __construct(string|null $name = null) Constructor. from Command ignoreValidationErrors() Ignores validation errors. from Command setApplication(Application $application = null) Sets the application instance for this command. from Command setHelperSet(HelperSet $helperSet) Sets the helper set. from Command HelperSet getHelperSet() Gets the helper set. from Command Application getApplicatio

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::warmUp()

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

CacheWarmerAggregate::setWarmers()

setWarmers(array $warmers) Parameters array $warmers

CacheWarmerAggregate::isOptional()

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

CacheWarmerAggregate::enableOptionalWarmers()

enableOptionalWarmers()

CacheWarmerAggregate::add()

add(CacheWarmerInterface $warmer) Parameters CacheWarmerInterface $warmer

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

CacheWarmer

class CacheWarmer implements CacheWarmerInterface Abstract cache warmer that knows how to write a file to the cache.

CachePoolPass::process()

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