<?php

namespace KadenceWP\KadenceBlocks\Composer\Installers;

use KadenceWP\KadenceBlocks\Composer\Composer;
use KadenceWP\KadenceBlocks\Composer\IO\IOInterface;
use KadenceWP\KadenceBlocks\Composer\Plugin\PluginInterface;

class Plugin implements PluginInterface
{
    /** @var Installer */
    private $installer;

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

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

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