Merge remote changes with PR feedback

Combined jbtronics' debug mode handling for composer install
with our yarn install/build steps and BackupManager refactoring.
This commit is contained in:
Sebastian Almberg 2026-02-01 19:23:07 +01:00
commit f369e14f2f
2 changed files with 20 additions and 7 deletions

View file

@ -55,6 +55,8 @@ class UpdateExecutor
private readonly InstallationTypeDetector $installationTypeDetector,
private readonly VersionManagerInterface $versionManager,
private readonly BackupManager $backupManager,
#[Autowire(param: 'app.debug_mode')]
private readonly bool $debugMode = false,
) {
}
@ -368,13 +370,23 @@ class UpdateExecutor
// Step 7: Install PHP dependencies
$stepStart = microtime(true);
$this->runCommand([
'composer', 'install',
'--no-dev',
'--optimize-autoloader',
'--no-interaction',
'--no-progress',
], 'Install PHP dependencies', 600);
if ($this->debugMode) {
$this->runCommand([ // Install with dev dependencies in debug mode
'composer',
'install',
'--no-interaction',
'--no-progress',
], 'Install PHP dependencies', 600);
} else {
$this->runCommand([
'composer',
'install',
'--no-dev',
'--optimize-autoloader',
'--no-interaction',
'--no-progress',
], 'Install PHP dependencies', 600);
}
$log('composer', 'Installed/updated PHP dependencies', true, microtime(true) - $stepStart);
// Step 8: Install frontend dependencies