public function getExecutor($action)
    {
        if (!$this->hasExecutor($action)) {
            throw new \OutOfBoundsException(sprintf(
                'There is no executor registered for action "%s".',
                $action
            ));
        }

        return $this->executors[$action];
    }
public function getExecutor($action)
    {
        if (!$this->hasExecutor($action)) {
            throw new \OutOfBoundsException(sprintf(
                'There is no executor registered for action "%s".',
                $action
            ));
        }

        return $this->executors[$action];
    }
public function getExecutor ( $ action ) { if ( ! $ this -> hasExecutor ( $ action ) ) { throw new \ OutOfBoundsException ( sprintf ( 'There is no executor registered for action "%s".' , $ action ) ) ; } return $ this -> executors [ $ action ] ; }
Returns a registered executor for given action.

@param string $action

@throws \OutOfBoundsException

@return ExecutorInterface
Returns a registered executor for given action .