ConfiguredMediator
extends PluginBase
in package
AbstractYes
Table of Contents
Properties
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
- getSubscribedEvents() : mixed
- installOrUpdateFunction() : void
- uninstall() : mixed
- getComposer() : Composer
- getDistributorConfig() : string
- getIO() : IOInterface
- isDesiredPackageEvent() : bool
- createInstallerFromConfig() : Installer
- createKeyDirectory() : KeyDirectory
- deleteFile() : void
- removePhars() : void
Properties
$config
private
Config
$config
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
getSubscribedEvents()
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
ComposergetDistributorConfig()
protected
abstract getDistributorConfig() : string
Return values
stringgetIO()
protected
getIO() : IOInterface
Return values
IOInterfaceisDesiredPackageEvent()
protected
isDesiredPackageEvent(PackageEvent $event, string $pluginName) : bool
Parameters
- $event : PackageEvent
- $pluginName : string
Return values
boolcreateInstallerFromConfig()
private
createInstallerFromConfig(Config $config, PackageEvent $event) : Installer
Parameters
- $config : Config
- $event : PackageEvent
Return values
InstallercreateKeyDirectory()
private
createKeyDirectory(Config $config) : KeyDirectory
Parameters
- $config : Config
Return values
KeyDirectorydeleteFile()
private
deleteFile(File $phar, string $binDir) : void
Parameters
- $phar : File
- $binDir : string
removePhars()
private
removePhars() : void