Switch to use the Module Installer Factory in the Varbase Email module

Created on 29 March 2022, over 2 years ago
Updated 22 January 2023, almost 2 years ago

Problem/Motivation

Having the Module Installer Factory packaged class

Proposed resolution

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

Having the varbase_email.info.yml with the following items

name: "Varbase Email"
type: module
description: "Adds email template for varbase emails"
package: Varbase
core_version_requirement: ^9
dependencies: []
install:
  - symfony_mailer
  - symfony_mailer_bc

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.11 , varbase_email-9.0.2

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

📌 Task
Status

Fixed

Version

9.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024