Problem/Motivation
Having the Module Installer Factory packaged class
Proposed resolution
Provides developers with a class to perform custom processor for install: in varbase_heroslider_media.info.yml file.
Having the varbase_heroslider_media.info.yml with the following items
name: "Media Hero Slider"
description: 'This app will populate the universal implementation of a "Hero Slider" to be used on the homepage in most cases. A rich hero slider that allows you to display video and/or image slides.'
type: module
package: "Varbase"
core_version_requirement: ^9
dependencies:
- varbase_media:varbase_media
- slick:slick
- slick_views:slick_views
install:
- link
- menu_ui
- entityqueue
- rh_node
- field_group
- length_indicator
- advanced_text_formatter
- maxlength
How to use the Module Installer Factory Class
Require the package in your root composer.json file
"vardot/module-installer-factory": "~1.0"
OR require the package in your project with the following command
$ composer require vardot/module-installer-factory:~1.0
Add Needed Namespace
Add the following name space at in custom modules or custom installation profiles.
use Vardot\Installer\ModuleInstallerFactory;
Use the following methods in your custom install events
ModuleInstallerFactory::installList('mdoule_name', 'install', TRUE);
Follow with more examples for other methods and how to use them
https://github.com/Vardot/module-installer-factory/blob/1.0.x/README.md
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ✅ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ➖ Accessibility and Readability
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes and Update Helper on new feature change/addition
- ✅ Release varbase-9.0.6, varbase_heroslider_media-9.0.4
Varbase update type
- ➖ No Update
- ➖ Optional Update
- ✅ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
- N/A
API changes
- N/A
Data model changes
- N/A
Release notes snippet
- Issue #3272305: Switched to use the Module Installer Factory in the Varbase Media Hero Slider module
Comments
Comment #2
rajab natshahComment #5
rajab natshahComment #6
rajab natshahComment #7
rajab natshahComment #8
rajab natshahComment #9
rajab natshahComment #13
rajab natshahComment #14
rajab natshah✅ Released varbase_heroslider_media-9.0.4
Comment #15
rajab natshah✅ Released varbase-9.0.6
Comment #16
rajab natshah