public function registerGlobalEvent($event, $callback)
    {
        if (!array_key_exists($event, $this->events)) {
            throw new \LogicException("Analogue : Event $event doesn't exist");
        }

        $this->eventDispatcher->listen("analogue.{$event}.*", $callback);
        //$this->eventDispatcher->listen($this->events[$event], $callback);
    }
public function registerGlobalEvent($event, $callback)
    {
        if (!array_key_exists($event, $this->events)) {
            throw new \LogicException("Analogue : Event $event doesn't exist");
        }

        $this->eventDispatcher->listen("analogue.{$event}.*", $callback);
        //$this->eventDispatcher->listen($this->events[$event], $callback);
    }
public function registerGlobalEvent ( $ event , $ callback ) { if ( ! array_key_exists ( $ event , $ this -> events ) ) { throw new \ LogicException ( "Analogue : Event $event doesn't exist" ) ; } $ this -> eventDispatcher -> listen ( "analogue.{$event}.*" , $ callback ) ; //$this->eventDispatcher->listen($this->events[$event], $callback); }
Register event listeners that will be fired regardless the type
of the entity.

@param string   $event
@param \Closure $callback

@throws \LogicException

@return void
Register event listeners that will be fired regardless the type of the entity .