Skip to content

Commit a60ec67

Browse files
committed
[ADD] Composer update after site update version.
1 parent 42e2bf0 commit a60ec67

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/src/Console/SiteUpdateCommand.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,14 @@ public function startUpdate()
173173
$application->setAutoExit(false);
174174
$application->run($input);
175175
$this->line('<fg=green>Run Migrations</>');
176-
177176
exec('php ../install/cli-install.php --typeInstall=2 --removeInstall=y');
178-
$this->line('<fg=green>Remove Install Directory</>');
179177

178+
$this->line('<fg=green>Remove Install Directory</>');
180179
self::rmdirs(MODX_BASE_PATH . 'install');
180+
181+
$this->line('<fg=green>Run Composer update</>');
182+
exec('composer update');
183+
181184
$this->line('<fg=yellow;bg=blue>Now You use ' . $factoryName . '</>');
182185
} else {
183186
$this->line('<fg=yellow;bg=blue>You use almost current version</>');

0 commit comments

Comments
 (0)