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, over 1 year 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.69.0 2024