Plugin8.php 761 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Installer;
  3. use Composer\Composer;
  4. use Composer\IO\IOInterface;
  5. use Composer\Plugin\PluginInterface;
  6. use Composer\Plugin\Capable;
  7. class Plugin8 implements PluginInterface, Capable
  8. {
  9. public $version = 'installer-v8';
  10. public function activate(Composer $composer, IOInterface $io)
  11. {
  12. $io->write('activate v8');
  13. }
  14. public function deactivate(Composer $composer, IOInterface $io)
  15. {
  16. $io->write('deactivate v8');
  17. }
  18. public function uninstall(Composer $composer, IOInterface $io)
  19. {
  20. $io->write('uninstall v8');
  21. }
  22. public function getCapabilities()
  23. {
  24. return array(
  25. 'Composer\Plugin\Capability\CommandProvider' => 'Installer\CommandProvider',
  26. );
  27. }
  28. }