PluginEvents.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 INIT event occurs after a Composer instance is done being initialized
  21. *
  22. * The event listener method receives a
  23. * Composer\EventDispatcher\Event instance.
  24. *
  25. * @var string
  26. */
  27. const INIT = 'init';
  28. /**
  29. * The COMMAND event occurs as a command begins
  30. *
  31. * The event listener method receives a
  32. * Composer\Plugin\CommandEvent instance.
  33. *
  34. * @var string
  35. */
  36. const COMMAND = 'command';
  37. /**
  38. * The PRE_FILE_DOWNLOAD event occurs before downloading a file
  39. *
  40. * The event listener method receives a
  41. * Composer\Plugin\PreFileDownloadEvent instance.
  42. *
  43. * @var string
  44. */
  45. const PRE_FILE_DOWNLOAD = 'pre-file-download';
  46. }