Plugin.php 577 B

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