public function triggerEvent($eventName, Event $event = null)
    {
        if (!$event) {
            $event = new Event;
        }

        $event->setTarget($this);

        return $this->eventDispatcher->dispatch($eventName, $event);
    }
public function triggerEvent($eventName, Event $event = null)
    {
        if (!$event) {
            $event = new Event;
        }

        $event->setTarget($this);

        return $this->eventDispatcher->dispatch($eventName, $event);
    }
public function triggerEvent ( $ eventName , Event $ event = null ) { if ( ! $ event ) { $ event = new Event ; } $ event -> setTarget ( $ this ) ; return $ this -> eventDispatcher -> dispatch ( $ eventName , $ event ) ; }
Manually trigger defined events
@param string $eventName event name
@return \Sokil\Mongo\Event
Manually trigger defined events