MediaWiki  master
ComposerHookHandler Class Reference

Static Public Member Functions

static onPreInstall (Event $event)
 
static onPreUpdate (Event $event)
 

Static Private Member Functions

static checkMergePluginActive (Event $event)
 Check if composer-merge-plugin has been activated. More...
 
static handleChangeEvent (Event $event)
 
static startAutoloader ()
 

Detailed Description

Note
GPL-2.0-or-later
Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Definition at line 11 of file ComposerHookHandler.php.

Member Function Documentation

◆ checkMergePluginActive()

static ComposerHookHandler::checkMergePluginActive ( Event  $event)
staticprivate

Check if composer-merge-plugin has been activated.

If not, the most likely explanation is that an old version of the plugin was present which did not support Composer 2, and so Composer disabled it.

Parameters
Event$event
Exceptions
Exception

Definition at line 32 of file ComposerHookHandler.php.

Referenced by onPreUpdate().

◆ handleChangeEvent()

static ComposerHookHandler::handleChangeEvent ( Event  $event)
staticprivate

Definition at line 50 of file ComposerHookHandler.php.

Referenced by onPreInstall(), and onPreUpdate().

◆ onPreInstall()

static ComposerHookHandler::onPreInstall ( Event  $event)
static

Definition at line 45 of file ComposerHookHandler.php.

References handleChangeEvent(), and startAutoloader().

◆ onPreUpdate()

static ComposerHookHandler::onPreUpdate ( Event  $event)
static

◆ startAutoloader()

static ComposerHookHandler::startAutoloader ( )
staticprivate

Definition at line 13 of file ComposerHookHandler.php.

Referenced by onPreInstall(), and onPreUpdate().


The documentation for this class was generated from the following file: