You are here

public function CacheWarmerAggregate::setWarmers 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::setWarmers()

File

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

Class

CacheWarmerAggregate
Aggregates several cache warmers into a single one.

Namespace

Symfony\Component\HttpKernel\CacheWarmer

Code

public function setWarmers(array $warmers) {
  $this->warmers = array();
  foreach ($warmers as $warmer) {
    $this
      ->add($warmer);
  }
}