src/Sedona/SBORuntimeBundle/Controller/BaseCrudController.php
protected function dispatchCrudEvent($entity, $action, $eventName)
    {
        $event = new AdminCrudEvent($entity, $action, $this->getUser());
        $this->get('event_dispatcher')->dispatch($eventName, $event);

        return $event;
    }
protected function dispatchCrudEvent($entity, $action, $eventName)
    {
        $event = new AdminCrudEvent($entity, $action, $this->getUser());
        $this->get('event_dispatcher')->dispatch($eventName, $event);

        return $event;
    }
protected function dispatchCrudEvent ( $ entity , $ action , $ eventName ) { $ event = new AdminCrudEvent ( $ entity , $ action , $ this -> getUser ( ) ) ; $ this -> get ( 'event_dispatcher' ) -> dispatch ( $ eventName , $ event ) ; return $ event ; }
Generic Event dispatcher.

@param $entity
@param $action
@param $eventName

@return AdminCrudEvent
Generic Event dispatcher .