final public function dispatch($name, EventInterface $event)
    {
        if ($this->hasDispatcher()) {
            $this->getDispatcher()->dispatch($name, $event);
            return true;
        }
        return false;
    }
final public function dispatch($name, EventInterface $event)
    {
        if ($this->hasDispatcher()) {
            $this->getDispatcher()->dispatch($name, $event);
            return true;
        }
        return false;
    }
final public function dispatch ( $ name , EventInterface $ event ) { if ( $ this -> hasDispatcher ( ) ) { $ this -> getDispatcher ( ) -> dispatch ( $ name , $ event ) ; return true ; } return false ; }
Dispatch an event if the dispatcher is loaded
@param string $name event name to dispatch
@param EventInterface $event
@return boolean
Dispatch an event if the dispatcher is loaded