Plugin.php 549 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Installer;
  3. use Composer\Composer;
  4. use Composer\IO\IOInterface;
  5. use Composer\Plugin\PluginInterface;
  6. class Plugin implements PluginInterface
  7. {
  8. public $version = 'installer-v1';
  9. public function activate(Composer $composer, IOInterface $io)
  10. {
  11. $io->write('activate v1');
  12. }
  13. public function deactivate(Composer $composer, IOInterface $io)
  14. {
  15. $io->write('deactivate v1');
  16. }
  17. public function uninstall(Composer $composer, IOInterface $io)
  18. {
  19. $io->write('uninstall v1');
  20. }
  21. }