123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- /*
- * This file is part of Composer.
- *
- * (c) Nils Adermann <naderman@naderman.de>
- * Jordi Boggiano <j.boggiano@seld.be>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Composer\Plugin;
- use Composer\Composer;
- use Composer\IO\IOInterface;
- /**
- * Plugin interface
- *
- * @author Nils Adermann <naderman@naderman.de>
- */
- interface PluginInterface
- {
- /**
- * Version number of the internal composer-plugin-api package
- *
- * @var string
- */
- const PLUGIN_API_VERSION = '2.0.0';
- /**
- * Apply plugin modifications to Composer
- *
- * @param Composer $composer
- * @param IOInterface $io
- */
- public function activate(Composer $composer, IOInterface $io);
- /**
- * Remove any hooks from Composer
- *
- * @param Composer $composer
- * @param IOInterface $io
- */
- public function deactivate(Composer $composer, IOInterface $io);
- /**
- * Prepare the plugin to be uninstalled
- *
- * This will be called after deactivate
- *
- * @param Composer $composer
- * @param IOInterface $io
- */
- public function uninstall(Composer $composer, IOInterface $io);
- }
|