public function warmupCache()
{
$routes = [];
$routes['*'] = [];
foreach ($this as $route) {
$targets = $route instanceof Route && is_array($tmp = $route->getTargets('presenter')) ? $tmp : array_keys($routes);
foreach ($targets as $target) {
if (!isset($routes[$target])) {
$routes[$target] = $routes['*'];
}
$routes[$target][] = $route;
}
}
$this->cachedRoutes = $routes;
}