PHPComposter\PHPComposter\Plugin::activate PHP Method

activate() public method

Activate the Composer plugin.
Since: 0.1.0
public activate ( Composer\Composer $composer, Composer\IO\IOInterface $io )
$composer Composer\Composer Reference to the Composer instance.
$io Composer\IO\IOInterface Reference to the IO interface.
    public function activate(Composer $composer, IOInterface $io)
    {
        static::$io = $io;
        if (static::$io->isVerbose()) {
            static::$io->write(_('Activating PHP Composter plugin'), true);
        }
        $installer = new Installer(static::$io, $composer);
        $composer->getInstallationManager()->addInstaller($installer);
        $filesystem = new Filesystem();
        $this->cleanUp($filesystem);
        $this->linkBootstrapFiles($filesystem);
        $this->createGitHooks($filesystem);
    }