EventDispatcherInterface.php 431 B

123456789101112131415161718192021
  1. <?php
  2. declare(strict_types=1);
  3. namespace Psr\EventDispatcher;
  4. /**
  5. * Defines a dispatcher for events.
  6. */
  7. interface EventDispatcherInterface
  8. {
  9. /**
  10. * Provide all relevant listeners with an event to process.
  11. *
  12. * @param object $event
  13. * The object to process.
  14. *
  15. * @return object
  16. * The Event that was passed, now modified by listeners.
  17. */
  18. public function dispatch(object $event);
  19. }