ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ComponentInstallerPlugin.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of Component Installer.
5 *
6 * (c) Rob Loach (http://robloach.net)
7 *
8 * For the full copyright and license information, please view the LICENSE.md
9 * file that was distributed with this source code.
10 */
11
13
14use Composer\Composer;
15use Composer\IO\IOInterface;
16use Composer\Plugin\PluginInterface;
17
25class ComponentInstallerPlugin implements PluginInterface
26{
30 public function activate(Composer $composer, IOInterface $io)
31 {
32 $installer = new Installer($io, $composer);
33 $composer->getInstallationManager()->addInstaller($installer);
34 }
35}
An exception for terminatinating execution or to throw for unit testing.
Composer Plugin to install Components.
activate(Composer $composer, IOInterface $io)
Called when the plugin is activated.
Component Installer for Composer.
Definition: Installer.php:23