Plugin1.php 604 B

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