Skip to content

Commit 981320e

Browse files
authored
Merge pull request #23 from hydephp/improve-internal-build-command
Improve internal build command
2 parents faa91f4 + cddc359 commit 981320e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/Commands/Internal/BuildApplicationBinaryCommand.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,21 @@ protected function resetBuildEnvironment(): void
6161
{
6262
unlink(__DIR__.'/../../../config/app.php');
6363
rename(__DIR__.'/../../../box.json.bak', __DIR__.'/../../../box.json');
64+
65+
$this->clearCachedConfiguration(true);
6466
}
6567

66-
protected function clearCachedConfiguration(): void
68+
protected function clearCachedConfiguration(bool $silent = false): void
6769
{
6870
$configPath = $this->laravel->getCachedConfigPath();
6971

7072
if (File::exists($configPath)) {
7173
File::delete($configPath);
7274
}
7375

74-
$this->components->info('Configuration cache cleared successfully.');
76+
if (! $silent) {
77+
$this->components->info('Configuration cache cleared successfully.');
78+
}
7579
}
7680

7781
protected function cacheConfiguration(): void

0 commit comments

Comments
 (0)