命令系统:update:fish做什么



Shopware 6bin/console命令system:update:finish用于composer安装后和更新后脚本[1]。当我查找该命令的帮助时,它没有给我任何关于该命令的作用或何时使用的描述:

$ bin/console system:update:finish --help
Usage:
system:update:finish
Options:
-h, --help            Display help for the given command. When no command is given display help for the list command
-q, --quiet           Do not output any message
-V, --version         Display this application version
--ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
-n, --no-interaction  Do not ask any interactive question
-e, --env=ENV         The Environment name. [default: "prod"]
--no-debug        Switch off debug mode.
-v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

官方文件也没有提供任何描述[2]。

命令的作用是什么?它应该在什么时候使用,还是应该只在作曲家脚本中使用?

本质上,此命令在内部运行另外两个CLI命令:

bin/console database:migrate core --all
bin/console assets:install

它还调度UpdatePostFinishEvent,并且有几个不同的订户在监听它

最新更新