1<?php
2declare(strict_types=1);
3
4namespace Psr\EventDispatcher;
5
6/**
7 * Defines a dispatcher for events.
8 */
9interface 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}
22