src/Events/EventDispatcher.php
public function notify(Event $event)
    {
        $processed = false;
        foreach ($this->listeners as $listener) {
            if ($listener->match($event)) {
                $listener->handle($event);
                $processed = true;
                if ($event->isPropagationStopped()) {
                    break;
                }
            }
        }
        return $processed;
    }
public function notify(Event $event)
    {
        $processed = false;
        foreach ($this->listeners as $listener) {
            if ($listener->match($event)) {
                $listener->handle($event);
                $processed = true;
                if ($event->isPropagationStopped()) {
                    break;
                }
            }
        }
        return $processed;
    }
public function notify ( Event $ event ) { $ processed = false ; foreach ( $ this -> listeners as $ listener ) { if ( $ listener -> match ( $ event ) ) { $ listener -> handle ( $ event ) ; $ processed = true ; if ( $ event -> isPropagationStopped ( ) ) { break ; } } } return $ processed ; }
Notifies the listeners of an event

@param Event $event
@return boolean Whether a listener handled the event
Notifies the listeners of an event