update patch 1
This commit is contained in:
+1
-1
@@ -27,6 +27,6 @@ abstract class CacheWarmer implements CacheWarmerInterface
|
||||
return;
|
||||
}
|
||||
|
||||
throw new \RuntimeException(sprintf('Failed to write cache file "%s".', $file));
|
||||
throw new \RuntimeException(\sprintf('Failed to write cache file "%s".', $file));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,15 +93,15 @@ class CacheWarmerAggregate implements CacheWarmerInterface
|
||||
}
|
||||
|
||||
$start = microtime(true);
|
||||
foreach ((array) $warmer->warmUp($cacheDir, $buildDir) as $item) {
|
||||
foreach ($warmer->warmUp($cacheDir, $buildDir) as $item) {
|
||||
if (is_dir($item) || (str_starts_with($item, \dirname($cacheDir)) && !is_file($item)) || ($buildDir && str_starts_with($item, \dirname($buildDir)) && !is_file($item))) {
|
||||
throw new \LogicException(sprintf('"%s::warmUp()" should return a list of files or classes but "%s" is none of them.', $warmer::class, $item));
|
||||
throw new \LogicException(\sprintf('"%s::warmUp()" should return a list of files or classes but "%s" is none of them.', $warmer::class, $item));
|
||||
}
|
||||
$preload[] = $item;
|
||||
}
|
||||
|
||||
if ($io?->isDebug()) {
|
||||
$io->info(sprintf('"%s" completed in %0.2fms.', $warmer::class, 1000 * (microtime(true) - $start)));
|
||||
$io->info(\sprintf('"%s" completed in %0.2fms.', $warmer::class, 1000 * (microtime(true) - $start)));
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user