ManagerInterface.php 548 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Event;
  7. /**
  8. * Interface \Magento\Framework\Event\ManagerInterface
  9. *
  10. */
  11. interface ManagerInterface
  12. {
  13. /**
  14. * Dispatch event
  15. *
  16. * Calls all observer callbacks registered for this event
  17. * and multiple observers matching event name pattern
  18. *
  19. * @param string $eventName
  20. * @param array $data
  21. * @return void
  22. */
  23. public function dispatch($eventName, array $data = []);
  24. }