WordPress at a glance
class is not described

Composer\Installers

Plugin{} WC 1.0

No Hooks.

Return

null. Nothing.

Usage

$Plugin = new Plugin();
// use class methods

Methods

  1. activate(Composer $composer, IOInterface $io)
  2. deactivate(Composer $composer, IOInterface $io)
  3. uninstall(Composer $composer, IOInterface $io)

Code of Plugin{} WC 5.2.2

<?php
class Plugin implements PluginInterface
{
    private $installer;

    public function activate(Composer $composer, IOInterface $io)
    {
        $this->installer = new Installer($io, $composer);
        $composer->getInstallationManager()->addInstaller($this->installer);
    }

    public function deactivate(Composer $composer, IOInterface $io)
    {
        $composer->getInstallationManager()->removeInstaller($this->installer);
    }

    public function uninstall(Composer $composer, IOInterface $io)
    {
    }
}