public function execAction()
    {
        //no action defined
        if(!$this->action) {
            throw new \Exception(sprintf('no action defined for subject %s', $this->name));
        }
        //exec method
        try {
            $this->checkTraitsInjections();
            $this->traitsInit();
            $this->{'exec'.$this->sanitizeAction($this->action)}();
        } catch(Exception $exception) {
        //no method defined
            throw new Exception(sprintf('no method for handling %s %s %s', AREA, $this->name, $this->action));
        }
    }
public function execAction()
    {
        //no action defined
        if(!$this->action) {
            throw new \Exception(sprintf('no action defined for subject %s', $this->name));
        }
        //exec method
        try {
            $this->checkTraitsInjections();
            $this->traitsInit();
            $this->{'exec'.$this->sanitizeAction($this->action)}();
        } catch(Exception $exception) {
        //no method defined
            throw new Exception(sprintf('no method for handling %s %s %s', AREA, $this->name, $this->action));
        }
    }
public function execAction ( ) { //no action defined if ( ! $ this -> action ) { throw new \ Exception ( sprintf ( 'no action defined for subject %s' , $ this -> name ) ) ; } //exec method try { $ this -> checkTraitsInjections ( ) ; $ this -> traitsInit ( ) ; $ this -> { 'exec' . $ this -> sanitizeAction ( $ this -> action ) } ( ) ; } catch ( Exception $ exception ) { //no method defined throw new Exception ( sprintf ( 'no method for handling %s %s %s' , AREA , $ this -> name , $ this -> action ) ) ; } }
tries to exec current action
@throws Exception if there is no action or method defined
tries to exec current action