WordPress at a glance
function is not described

Composer\Installers

Plugin::activate() public WC 1.0

{} It's a method of the class: Plugin{}

No Hooks.

Return

null. Nothing.

Usage

$Plugin = new Plugin();
$Plugin->activate( $composer, $io );
$composer(Composer) (required)
-
$io(IOinterface) (required)
-

Code of Plugin::activate() WC 5.3.0

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