public function CacheWarmerAggregate::setWarmers

1 call to CacheWarmerAggregate::setWarmers()
CacheWarmerAggregate::__construct in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php, line 61

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);
  }
}