Description
When installing the demo modules using the CLI command:
php qt install:demo
the command correctly generates Web and Api module files and related configs if modules.php is empty or only contains demo modules.
However, if modules.php already contains any existing module before running the command, the behavior becomes inconsistent.
Expected Behavior
If modules.php already contains one or more modules, running:
php qt install:demo
should append both Web and Api modules to the configuration, without skipping any sections.
Actual Behavior
Module files for Web and Api are generated correctly
modules.php is updated only with the Web module
- The
Api module configuration is silently skipped
Description
When installing the demo modules using the CLI command:
php qt install:demothe command correctly generates
WebandApimodule files and related configs if modules.php is empty or only contains demo modules.However, if
modules.phpalready contains any existing module before running the command, the behavior becomes inconsistent.Expected Behavior
If
modules.phpalready contains one or more modules, running:php qt install:demoshould append both
WebandApimodules to the configuration, without skipping any sections.Actual Behavior
Module files for
WebandApiare generated correctlymodules.phpis updated only with theWebmoduleApimodule configuration is silently skipped