You are here

public function CacheWarmerAggregate::warmUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate::warmUp()

Warms up the cache.

Parameters

string $cacheDir The cache directory:

Overrides WarmableInterface::warmUp

File

vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php, line 41

Class

CacheWarmerAggregate
Aggregates several cache warmers into a single one.

Namespace

Symfony\Component\HttpKernel\CacheWarmer

Code

public function warmUp($cacheDir) {
  foreach ($this->warmers as $warmer) {
    if (!$this->optionalsEnabled && $warmer
      ->isOptional()) {
      continue;
    }
    $warmer
      ->warmUp($cacheDir);
  }
}