PluginEvents.php 890 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /*
  3. * This file is part of Composer.
  4. *
  5. * (c) Nils Adermann <naderman@naderman.de>
  6. * Jordi Boggiano <j.boggiano@seld.be>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Composer\Plugin;
  12. /**
  13. * The Plugin Events.
  14. *
  15. * @author Nils Adermann <naderman@naderman.de>
  16. */
  17. class PluginEvents
  18. {
  19. /**
  20. * The COMMAND event occurs as a command begins
  21. *
  22. * The event listener method receives a
  23. * Composer\Plugin\CommandEvent instance.
  24. *
  25. * @var string
  26. */
  27. const COMMAND = 'command';
  28. /**
  29. * The PRE_FILE_DOWNLOAD event occurs before downloading a file
  30. *
  31. * The event listener method receives a
  32. * Composer\Plugin\PreFileDownloadEvent instance.
  33. *
  34. * @var string
  35. */
  36. const PRE_FILE_DOWNLOAD = 'pre-file-download';
  37. }