public function registerEvent($event, $callback)
    {
        $name = $this->entityMap->getClass();

        $this->dispatcher->listen("analogue.{$event}.{$name}", $callback);
    }
public function registerEvent($event, $callback)
    {
        $name = $this->entityMap->getClass();

        $this->dispatcher->listen("analogue.{$event}.{$name}", $callback);
    }
public function registerEvent ( $ event , $ callback ) { $ name = $ this -> entityMap -> getClass ( ) ; $ this -> dispatcher -> listen ( "analogue.{$event}.{$name}" , $ callback ) ; }
Register an entity event with the dispatcher.

@param string   $event
@param \Closure $callback

@return void
Register an entity event with the dispatcher .