Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.
   1  <?php
   2  declare(strict_types=1);
   3  
   4  namespace Psr\EventDispatcher;
   5  
   6  /**
   7   * Defines a dispatcher for events.
   8   */
   9  interface EventDispatcherInterface
  10  {
  11      /**
  12       * Provide all relevant listeners with an event to process.
  13       *
  14       * @param object $event
  15       *   The object to process.
  16       *
  17       * @return object
  18       *   The Event that was passed, now modified by listeners.
  19       */
  20      public function dispatch(object $event);
  21  }