You are here

public function ChainRouter::warmUp in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony-cmf/routing/ChainRouter.php \Symfony\Cmf\Component\Routing\ChainRouter::warmUp()

check for each contained router if it can warmup

Overrides WarmableInterface::warmUp

File

vendor/symfony-cmf/routing/ChainRouter.php, line 286

Class

ChainRouter
The ChainRouter allows to combine several routers to try in a defined order.

Namespace

Symfony\Cmf\Component\Routing

Code

public function warmUp($cacheDir) {
  foreach ($this
    ->all() as $router) {
    if ($router instanceof WarmableInterface) {
      $router
        ->warmUp($cacheDir);
    }
  }
}