Forward to a controller, action with parameters.

@param array $forward with details for controller, action, parameters.

@return mixed result from dispatched controller action.
350205
public function forward($forward = [])
    {
        $controller = isset($forward['controller'])
            ? $forward['controller']
            : null;

        $action = isset($forward['action'])
            ? $forward['action']
            : null;
        
        $params = isset($forward['params'])
            ? $forward['params']
            : [];

        $this->setControllerName($controller);
        $this->setActionName($action);
        $this->setParams($params);

        $this->isCallableOrException();
        return $this->dispatch();
    }
126271
public function action($action)
    {
        $a = func_get_args();
        $controllerPath = $this->controller->getControllerActionPath();
        array_unshift($a, $controllerPath);
        $ret = call_user_func_array([$this, 'url'], $a);

        return $ret;
    }
863411
public function forwardToConnector(string $controller, AbstractConnector $connector)
    {
        //====================================================================//
        // Safety Check
        if (empty($connector) || empty($controller)) {
            return self::getDefaultResponse();
        }

        //====================================================================//
        // Load Current Request Query
        $request = $this->get('request_stack')->getCurrentRequest();
        $query = is_null($request) ? array() : $request->query->all();

        //====================================================================//
        // Redirect to Requested Controller Action
        try {
            $response = $this->forward($controller, array('connector' => $connector), $query);
        } catch (InvalidArgumentException $e) {
            return new Response($e->getMessage(), 500);
        }

        return $response;
    }
273174
public function forward( $throwException = FALSE )
	{
		$query	= getEnv( 'QUERY_STRING' );														//  get GET Query String
		$url	= $this->url."?".$query;														//  build Service Request URL
		return self::requestUrl( $url, $this->username, $this->password, $throwException );
	}
32383
def forward(self, search: str):
        
        url_path = "/api/forward/{search}".format(search=search)
        return self._request(path=url_path)
872290
public function getForwardFunction()
    {
        if ($this->forwardFunction)
            return $this->forwardFunction;
        if ($this->getParent())
            return $this->getParent()->getForwardFunction();
        return null;
    }
1192902
protected function getControllerAction($options)
    {
        if (is_array($options)) {
            return URL::action($options[0], array_slice($options, 1));
        }

        return URL::action($options);
    }
1170468
public function forward($p)
    {
        // Forward equations
        $lam = $p->x;
        $phi = $p->y;
        $lam = Common::adjust_lon($lam - $this->long0);

        if ($this->sphere) {
            $x = asin(cos($phi) * sin($lam));
            $y = atan2(tan($phi), cos($lam)) - $this->phi0;
        } else {
            // ellipsoid
            $this->n = sin($phi);
            $this->c = cos($phi);
            $y = Common::pj_mlfn($phi, $this->n, $this->c, $this->en);
            $this->n = 1.0 / sqrt(1.0 - $this->es * $this->n * $this->n);
            $this->tn = tan($phi);
            $this->t = $this->tn * $this->tn;
            $this->a1 = $lam * $this->c;
            $this->c *= $this->es * $this->c / (1 - $this->es);
            $this->a2 = $this->a1 * $this->a1;
            $x = $this->n * $this->a1 * (1.0 - $this->a2 * $this->t * ($this->C1 - (8.0 - $this->t + 8.0 * $this->c) * $this->a2 * $this->C2));
            $y -= $this->m0 - $this->n * $this->tn * $this->a2 * (0.5 + (5. - $this->t + 6. * $this->c) * $this->a2 * $this->C3);
        }

        $p->x = $this->a * $x + $this->x0;
        $p->y = $this->a * $y + $this->y0;

        return $p;
    }
376225
public function forward( $params )
	{
        $controller_name = $params["controller"];
        $action_name     = $params["action"];
        $params          = isset($params["params"]) ? $params["params"] : array();

        $this->_route->setControllerName( $controller_name );
        $this->_route->setActionName( $action_name );
        $this->_route->setParams( $params );

		$this->_was_forwarded = true;
	}
731556
protected function forwardAction ($action, $params=array())
    {
        // Get controller public name
        $ctrlPubName = \Teon\Base\Stdlib\ClassUtils::getPublicControllerName(get_class($this));

        // Get original parameters
        $paramsOrig = $this->params()->fromRoute();

        // Combine parameters - if action is explicitly specified in params it is overriden
        $params2pass = array_merge(
            $paramsOrig,
            $params,
            array('action' => $action)
        );

        // Do the forward
        return $this->forward()->dispatch($ctrlPubName, $params2pass);
    }
42848
def forward(self, to):
        

        method, url = get_URL('forward')

        payload = {
            'apikey': self.session.cookies.get('apikey'),
            'transferid': self.transfer_id,
            'transferkey': self.transfer_info.get('transferkey'),
            'to': self._parse_recipients(to)
            }

        res = getattr(self.session, method)(url, params=payload)

        if res.status_code == 200:
            return True

        hellraiser(res)
718474
public ApiSuccessResponse forward(ForwardData forwardData) throws ApiException {
        ApiResponse<ApiSuccessResponse> resp = forwardWithHttpInfo(forwardData);
        return resp.getData();
    }
729862
protected function insertNearInternal($forward)
    {
        $this->checkNode(true);
        $this->owner->setAttribute($this->parentAttribute, $this->node->getAttribute($this->parentAttribute));
        if ($this->sortable !== false) {
            if ($forward) {
                $this->behavior->moveAfter($this->node);
            } else {
                $this->behavior->moveBefore($this->node);
            }
        }
    }
151409
protected function forward($callback, $method, $params = [])
    {
        if ($this->isLoaded()) {
            if (!$this->soft) {
                $oldInstance = clone $this->instance;
            }
            $return = $callback();
            if (!$this->soft && $oldInstance != $this->instance) {
                $this->instance = $oldInstance;
                $this->throwImmutableException();
            }
            return $return;
        } else {
            return parent::$method($params);
        }
    }
311297
public function dispatchRoute(Parsed $route, array $parameters = [])
    {
        $handler = $route->getHandler();
        if (isset($handler['controler']) && isset($handler['action'])) {
            $routePlaceholders             = $route->getPlaceholders();
            list($controllerName, $action) = $this->resolveControlerAction(
                $route->getParameters(),
                $routePlaceholders,
                $handler
            );

            // Create instance of target class
            $controller = new $controllerName();
            // Create class method name with prefix
            $methodName = $this->actionName.$action;

            $parameterMap = $this->getMethodParameters(
                $controllerName,
                $methodName
            );

            $methodParameters = $this->getFunctionArgumentsControlers(
                $parameterMap,
                $route->getParameters(),
                $routePlaceholders,
                $handler
            );

            return call_user_func_array(
                [
                    $controller,
                    $methodName
                ],
                $methodParameters
            );
        }

        return $this->dispatchNotFound();
    }
840302
public function dispatch($action, array $parameters = [])
    {
        $parameters['key'] = $this->config('public_key');
        $parameters['sum'] = $this->summary(array_merge($parameters, [
            'action'  => $action,
            'version' => self::VERSION,
        ]));
        $uri = (new UriTemplate())->expand(self::HOST.'{/segments*}{?parameters*}', [
            'segments'   => [
                self::VERSION, $action,
            ],
            'parameters' => $parameters,
        ]);

        return (new Client())->get($uri);
    }
444994
public static function forward($methods, $object)
    {
        foreach ((array) $methods as $method) {
            static::extend($method, static::buildForward($method, $object));
        }
    }