serviceIds); } /** * {@inheritdoc} */ public function preWarmOneCache(): bool { $candidate = array_pop($this->serviceIds); if ($candidate === NULL) { return FALSE; } $service = $this->classResolver->getInstanceFromDefinition($candidate); $service->preWarm(); return TRUE; } /** * {@inheritdoc} */ public function preWarmAllCaches(): bool { $prewarmed = FALSE; while ($this->preWarmOneCache()) { $prewarmed = TRUE; } return $prewarmed; } }