src/Graviton/RestBundle/Event/ModelEvent.php
public function setActionByDispatchName($dispatchName)
    {
        if (array_key_exists($dispatchName, $this->availableEvents)) {
            $this->action = $this->availableEvents[$dispatchName];
        } else {
            throw new \RuntimeException('Document Model event dispatch type not found: ' . $dispatchName);
        }
    }
public function setActionByDispatchName($dispatchName)
    {
        if (array_key_exists($dispatchName, $this->availableEvents)) {
            $this->action = $this->availableEvents[$dispatchName];
        } else {
            throw new \RuntimeException('Document Model event dispatch type not found: ' . $dispatchName);
        }
    }
public function setActionByDispatchName ( $ dispatchName ) { if ( array_key_exists ( $ dispatchName , $ this -> availableEvents ) ) { $ this -> action = $ this -> availableEvents [ $ dispatchName ] ; } else { throw new \ RuntimeException ( 'Document Model event dispatch type not found: ' . $ dispatchName ) ; } }
Set the event ACTION name based on the fired name

@param string $dispatchName the CONST value for dispatch names

@return string
@throws Exception
Set the event ACTION name based on the fired name