Description
yawik/standard should require the zendframework/zend-component-installer ^2.0
That will enhance / simplify the following:
-
Installing additional modules
currently, you have to manually edit the modules.config.php or create a name.module.config.php file in the config/autoload folder to activate the module after installing. Using the component installer will inject the module automatically in the modules.config.php, which leads directly to the next point.... -
Assets installation will include a newly installed module
currently, as the module is not injected, the install assets command run will not know nothing about the new module, so you have to manually run the command after you added the module to the configuration. -
Core\Application
Currently, there are three sources where the list of modules to load is merged from:- config/modules.php
- Core\Application::getRequiredModules()
- any name.module.config.php file in config/autoload via Core\Application::scanAdditionalModules()
When relying on the component installer, the methods getRequiredModules(), scanAdditionalModules() and generateModuleConfiguration() will be obsolete.
I know, the component installer will display prompts during the installation which is generally bad for automatic build processes - but luckily that can be circumvented by using the no-interactions
flag of composer.