Neos.Neos/Classes/EventLog/Domain/Service/EventEmittingService.php
public function emit($eventType, array $data, $eventClassName = Event::class)
    {
        if (!$this->isEnabled()) {
            throw new Exception('Event log not enabled', 1418464933);
        }

        $event = $this->generate($eventType, $data, $eventClassName);
        $this->add($event);

        return $event;
    }
public function emit($eventType, array $data, $eventClassName = Event::class)
    {
        if (!$this->isEnabled()) {
            throw new Exception('Event log not enabled', 1418464933);
        }

        $event = $this->generate($eventType, $data, $eventClassName);
        $this->add($event);

        return $event;
    }
public function emit ( $ eventType , array $ data , $ eventClassName = Event :: class ) { if ( ! $ this -> isEnabled ( ) ) { throw new Exception ( 'Event log not enabled' , 1418464933 ) ; } $ event = $ this -> generate ( $ eventType , $ data , $ eventClassName ) ; $ this -> add ( $ event ) ; return $ event ; }
Convenience method for generating an event and directly adding it afterwards to persistence.

@param string $eventType
@param array $data
@param string $eventClassName
@throws Exception
@return Event
Convenience method for generating an event and directly adding it afterwards to persistence .