protected function beforeDispatch(string $eventName, $event)
    {
        $this->preDispatch($eventName, $event instanceof Event ? $event : new LegacyEventProxy($event));
    }
protected function beforeDispatch(string $eventName, $event)
    {
        $this->preDispatch($eventName, $event instanceof Event ? $event : new LegacyEventProxy($event));
    }
protected function beforeDispatch ( string $ eventName , $ event ) { $ this -> preDispatch ( $ eventName , $ event instanceof Event ? $ event : new LegacyEventProxy ( $ event ) ) ; }
Called before dispatching the event.

@param object $event
Called before dispatching the event .