Pageworks / papertrain

Papertrain: a Craft CMS 3 framework
http://download.papertrain.io
MIT License
5 stars 2 forks source link

Request Module Checking #136

Closed codewithkyle closed 5 years ago

codewithkyle commented 5 years ago

A module should be able to request for the main application to check for new modules or to remove dead modules via the AbstractModule class.

/**
 * Tells the main application to check for new modules.
 */
public triggerInitModules(): void{
    this._app.initModules();
}

/**
 * Tells the main applicaiton to check for dead modules.
 */
public triggerDeleteModules(): void{
    this._app.deleteModules();
}