Problem/Motivation

Having the Module Installer Factory packaged class

Proposed resolution

Provides developers with a class to perform custom processor for install: in varbase_commerce.info.yml file.

Having the varbase_commerce.info.yml with the following items

name: "Varbase Commerce"
type: module
description: "Provides a starting point for Varbase merchandise section and the products catalog."
package: Varbase
core_version_requirement: ^8 || ^9
dependencies:
  - commerce:commerce
  - commerce:commerce_cart
  - commerce:commerce_product
  - commerce_reports:commerce_reports
install:
  - comment
  - views_data_export
  - commerce_checkout
  - commerce_shipping
  - commerce_simple_stock
  - commerce_payment
  - commerce_cart_flyout
  - commerce_tax
  - commerce_promotion
  - fivestar
  - flag
  - search_api
  - search_api_autocomplete
  - facets
  - facets_block
  - better_exposed_filters
  - entityqueue
  - color_field
  - term_reference_tree

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_commerce-1.0.0-alpha1

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

Comments

Rajab Natshah created an issue. See original summary.

rajab natshah’s picture

Title: Switch to use the Module Installer Factory with custom install: for the Varbase Commerce (Merchandise) module » Switch to use the Module Installer Factory in the Varbase Commerce (Merchandise) module

  • Rajab Natshah committed a3f5f25 on 1.0.x
    Issue #3272282: Switch to use the Module Installer Factory in the...
rajab natshah’s picture

Assigned: rajab natshah » mohammed j. razem
Issue summary: View changes
Status: Active » Needs review
Issue tags: +varbase-9.0.6, +varbase_commerce-1.0.0-alpha1
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rajab natshah’s picture

✅ Released varbase-9.0.6

rajab natshah’s picture

Issue summary: View changes