public function call($class, $action, array $params = array(), array $options = array())
    {
        $controller = $this->controllerFactory->build($class, $action, $options);

        if (method_exists($controller, $action)) {
            return call_user_func_array(array($controller, $action), $params);
        } else {
            throw new LogicException(sprintf(
                'A %s controller must implement %s() method, because it has been defined in the map', $class, $action
            ));
        }
    }
public function call($class, $action, array $params = array(), array $options = array())
    {
        $controller = $this->controllerFactory->build($class, $action, $options);

        if (method_exists($controller, $action)) {
            return call_user_func_array(array($controller, $action), $params);
        } else {
            throw new LogicException(sprintf(
                'A %s controller must implement %s() method, because it has been defined in the map', $class, $action
            ));
        }
    }
public function call ( $ class , $ action , array $ params = array ( ) , array $ options = array ( ) ) { $ controller = $ this -> controllerFactory -> build ( $ class , $ action , $ options ) ; if ( method_exists ( $ controller , $ action ) ) { return call_user_func_array ( array ( $ controller , $ action ) , $ params ) ; } else { throw new LogicException ( sprintf ( 'A %s controller must implement %s() method, because it has been defined in the map' , $ class , $ action ) ) ; } }
Calls a controller providing a service locator as its dependency

This uses PSR-0 compliant class name, $actions as its method name
And an array of $params to supply into method's action

@param string $class PSR-0 compliant class name
@param string $action A class method to be invoked
@param array $params Parameters to be passed into a method
@param array $options Route options
@throws \DomainException if controller's execution is halted
@throws \LogicException if controller hasn't expected action to execute
@return string
Calls a controller providing a service locator as its dependency