src/Search/Framework/CollectionAgentAbstract.php
public function dispatchEvent($name, SearchEvent $event, array $context = array())
    {
        $log = $this->getLogger();
        $context['event'] = $name;
        $log->debug('Throwing event', $context);
        $this->getDispatcher()->dispatch($name, $event);
        $log->debug('Event thrown', $context);
    }
public function dispatchEvent($name, SearchEvent $event, array $context = array())
    {
        $log = $this->getLogger();
        $context['event'] = $name;
        $log->debug('Throwing event', $context);
        $this->getDispatcher()->dispatch($name, $event);
        $log->debug('Event thrown', $context);
    }
public function dispatchEvent ( $ name , SearchEvent $ event , array $ context = array ( ) ) { $ log = $ this -> getLogger ( ) ; $ context [ 'event' ] = $ name ; $ log -> debug ( 'Throwing event' , $ context ) ; $ this -> getDispatcher ( ) -> dispatch ( $ name , $ event ) ; $ log -> debug ( 'Event thrown' , $ context ) ; }
Dispatches an event, wraps with debug messages.

@param string $name
The name of the event to dispatch.
@param SearchEvent $event
The event to pass to the event handlers/listeners.
@param array $context
Optional context to pass to the logger.
Dispatches an event wraps with debug messages .