@@ -132,7 +132,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
132
132
$ warmer = $ kernel ->getContainer ()->get ('cache_warmer ' );
133
133
// non optional warmers already ran during container compilation
134
134
$ warmer ->enableOnlyOptionalWarmers ();
135
- $ preload = (array ) $ warmer ->warmUp ($ realCacheDir );
135
+ $ preload = (array ) $ warmer ->warmUp ($ realCacheDir, $ io );
136
136
137
137
if ($ preload && file_exists ($ preloadFile = $ realCacheDir .'/ ' .$ kernel ->getContainer ()->getParameter ('kernel.container_class ' ).'.preload.php ' )) {
138
138
Preloader::append ($ preloadFile , $ preload );
@@ -145,7 +145,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
145
145
if ($ output ->isVerbose ()) {
146
146
$ io ->comment ('Warming up cache... ' );
147
147
}
148
- $ this ->warmup ($ warmupDir , $ realCacheDir , !$ input ->getOption ('no-optional-warmers ' ));
148
+ $ this ->warmup ($ io , $ warmupDir , $ realCacheDir , !$ input ->getOption ('no-optional-warmers ' ));
149
149
}
150
150
151
151
if (!$ fs ->exists ($ warmupDir .'/ ' .$ containerDir )) {
@@ -219,7 +219,7 @@ private function isNfs(string $dir): bool
219
219
return false ;
220
220
}
221
221
222
- private function warmup (string $ warmupDir , string $ realBuildDir , bool $ enableOptionalWarmers = true ): void
222
+ private function warmup (SymfonyStyle $ io , string $ warmupDir , string $ realBuildDir , bool $ enableOptionalWarmers = true ): void
223
223
{
224
224
// create a temporary kernel
225
225
$ kernel = $ this ->getApplication ()->getKernel ();
@@ -233,7 +233,7 @@ private function warmup(string $warmupDir, string $realBuildDir, bool $enableOpt
233
233
$ warmer = $ kernel ->getContainer ()->get ('cache_warmer ' );
234
234
// non optional warmers already ran during container compilation
235
235
$ warmer ->enableOnlyOptionalWarmers ();
236
- $ preload = (array ) $ warmer ->warmUp ($ warmupDir );
236
+ $ preload = (array ) $ warmer ->warmUp ($ warmupDir, $ io );
237
237
238
238
if ($ preload && file_exists ($ preloadFile = $ warmupDir .'/ ' .$ kernel ->getContainer ()->getParameter ('kernel.container_class ' ).'.preload.php ' )) {
239
239
Preloader::append ($ preloadFile , $ preload );
0 commit comments