Skip to content

Commit 9b8dc6e

Browse files
authored
Add parameter to silence cache clear output
1 parent faa91f4 commit 9b8dc6e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/Commands/Internal/BuildApplicationBinaryCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,17 @@ protected function resetBuildEnvironment(): void
6363
rename(__DIR__.'/../../../box.json.bak', __DIR__.'/../../../box.json');
6464
}
6565

66-
protected function clearCachedConfiguration(): void
66+
protected function clearCachedConfiguration(bool $silent = false): void
6767
{
6868
$configPath = $this->laravel->getCachedConfigPath();
6969

7070
if (File::exists($configPath)) {
7171
File::delete($configPath);
7272
}
7373

74-
$this->components->info('Configuration cache cleared successfully.');
74+
if (! $silent) {
75+
$this->components->info('Configuration cache cleared successfully.');
76+
}
7577
}
7678

7779
protected function cacheConfiguration(): void

0 commit comments

Comments
 (0)