Plugin
extends ConfiguredMediator
in package
FinalYes
Table of Contents
Methods
- __construct() : mixed
- Config has to be loaded on instantiation because on uninstall all external dependencies are removed before `uninstall` is called and auto-loading any external phar-io dependencies then will fail.
- activate() : mixed
- createGnuPG() : GnuPG|null
- createInstaller() : Installer
- deactivate() : mixed
- getDistributorConfig() : string
- getSubscribedEvents() : mixed
- installOrUpdateFunction() : void
- uninstall() : mixed
- getComposer() : Composer
- getIO() : IOInterface
- isDesiredPackageEvent() : bool
Methods
__construct()
Config has to be loaded on instantiation because on uninstall all external dependencies are removed before `uninstall` is called and auto-loading any external phar-io dependencies then will fail.
public
__construct() : mixed
activate()
public
activate(Composer $composer, IOInterface $io) : mixed
Parameters
- $composer : Composer
- $io : IOInterface
createGnuPG()
public
createGnuPG() : GnuPG|null
Return values
GnuPG|nullcreateInstaller()
public
createInstaller(string $pluginName, PackageEvent $event) : Installer
Parameters
- $pluginName : string
- $event : PackageEvent
Return values
Installerdeactivate()
public
deactivate(Composer $composer, IOInterface $io) : mixed
Parameters
- $composer : Composer
- $io : IOInterface
getDistributorConfig()
public
getDistributorConfig() : string
Return values
stringgetSubscribedEvents()
public
static getSubscribedEvents() : mixed
installOrUpdateFunction()
public
installOrUpdateFunction(PackageEvent $event) : void
Parameters
- $event : PackageEvent
uninstall()
public
uninstall(Composer $composer, IOInterface $io) : mixed
Parameters
- $composer : Composer
- $io : IOInterface
getComposer()
protected
getComposer() : Composer
Return values
ComposergetIO()
protected
getIO() : IOInterface
Return values
IOInterfaceisDesiredPackageEvent()
protected
isDesiredPackageEvent(PackageEvent $event, string $pluginName) : bool
Parameters
- $event : PackageEvent
- $pluginName : string