public function ChainRouter::warmUp

check for each contained router if it can warmup

Overrides WarmableInterface::warmUp

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php, line 259

Class

ChainRouter
ChainRouter

Namespace

Symfony\Cmf\Component\Routing

Code

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