TraceableEventDispatcherInterface.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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\Debug;
  11. use Symfony\Component\EventDispatcher\EventDispatcherInterface;
  12. use Symfony\Component\HttpFoundation\Request;
  13. use Symfony\Contracts\Service\ResetInterface;
  14. /**
  15. * @deprecated since Symfony 4.1
  16. *
  17. * @author Fabien Potencier <fabien@symfony.com>
  18. */
  19. interface TraceableEventDispatcherInterface extends EventDispatcherInterface, ResetInterface
  20. {
  21. /**
  22. * Gets the called listeners.
  23. *
  24. * @param Request|null $request The request to get listeners for
  25. *
  26. * @return array An array of called listeners
  27. */
  28. public function getCalledListeners(/* Request $request = null */);
  29. /**
  30. * Gets the not called listeners.
  31. *
  32. * @param Request|null $request The request to get listeners for
  33. *
  34. * @return array An array of not called listeners
  35. */
  36. public function getNotCalledListeners(/* Request $request = null */);
  37. }