ResourceComponent.php
public function getEventDispatcher()
    {
        if (null === $this->eventDispatcher) {
            $this->eventDispatcher = new Dispatcher\ResourceEventDispatcher();
            $this->eventDispatcher->setConfigurationRegistry($this->getConfigurationRegistry());
            $this->eventDispatcher->setEventQueue($this->getEventQueue());
        }

        return $this->eventDispatcher;
    }
public function getEventDispatcher()
    {
        if (null === $this->eventDispatcher) {
            $this->eventDispatcher = new Dispatcher\ResourceEventDispatcher();
            $this->eventDispatcher->setConfigurationRegistry($this->getConfigurationRegistry());
            $this->eventDispatcher->setEventQueue($this->getEventQueue());
        }

        return $this->eventDispatcher;
    }
public function getEventDispatcher ( ) { if ( null === $ this -> eventDispatcher ) { $ this -> eventDispatcher = new Dispatcher \ ResourceEventDispatcher ( ) ; $ this -> eventDispatcher -> setConfigurationRegistry ( $ this -> getConfigurationRegistry ( ) ) ; $ this -> eventDispatcher -> setEventQueue ( $ this -> getEventQueue ( ) ) ; } return $ this -> eventDispatcher ; }
Returns the event dispatcher.

@return Dispatcher\ResourceEventDispatcher
Returns the event dispatcher .