Events.php 1.0KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace Gedmo\Uploadable;
  3. /**
  4. * Container for all Gedmo Uploadable events
  5. *
  6. * @author Gustavo Falco <comfortablynumb84@gmail.com>
  7. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  8. * @package Gedmo.Uploadable
  9. * @subpackage Events
  10. * @link http://www.gediminasm.org
  11. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  12. */
  13. final class Events
  14. {
  15. private function __construct() {}
  16. /**
  17. * The uploadablePreFileProcess event occurs before a file is processed inside
  18. * the Uploadable listener. This means it happens before the file is validated and moved
  19. * to the configured path.
  20. *
  21. * @var string
  22. */
  23. const uploadablePreFileProcess = 'uploadablePreFileProcess';
  24. /**
  25. * The uploadablePostFileProcess event occurs after a file is processed inside
  26. * the Uploadable listener. This means it happens after the file is validated and moved
  27. * to the configured path.
  28. *
  29. * @var string
  30. */
  31. const uploadablePostFileProcess = 'uploadablePostFileProcess';
  32. }