Classes/Helmich/EventBroker/Broker/Broker.php
private function invokeListener($listener, $event)
    {
        if (is_array($listener))
        {
            list($listenerClass, $method) = $listener;

            $listenerInstance = $this->objectManager->get($listenerClass);
            $listenerInstance->{$method}($event);
        }
        else
        {
            call_user_func($listener, $event);
        }
    }
private function invokeListener($listener, $event)
    {
        if (is_array($listener))
        {
            list($listenerClass, $method) = $listener;

            $listenerInstance = $this->objectManager->get($listenerClass);
            $listenerInstance->{$method}($event);
        }
        else
        {
            call_user_func($listener, $event);
        }
    }
private function invokeListener ( $ listener , $ event ) { if ( is_array ( $ listener ) ) { list ( $ listenerClass , $ method ) = $ listener ; $ listenerInstance = $ this -> objectManager -> get ( $ listenerClass ) ; $ listenerInstance -> { $ method } ( $ event ) ; } else { call_user_func ( $ listener , $ event ) ; } }
Invokes a listener for an event.

@param callable $listener Any type of callable.
@param object   $event    The event object.
@return void

@throws UnknownObjectException May be thrown when the listener class cannot be instantiated.
Invokes a listener for an event .