Event.php 926 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\EventDispatcher;
  11. /**
  12. * @deprecated since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead
  13. */
  14. class Event
  15. {
  16. private $propagationStopped = false;
  17. /**
  18. * @return bool Whether propagation was already stopped for this event
  19. *
  20. * @deprecated since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead
  21. */
  22. public function isPropagationStopped()
  23. {
  24. return $this->propagationStopped;
  25. }
  26. /**
  27. * @deprecated since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead
  28. */
  29. public function stopPropagation()
  30. {
  31. $this->propagationStopped = true;
  32. }
  33. }