protected function rewriteRoutingSetRequestParams (array & $allMatchedParams) {
		$request = & $this->request;
		$defaultParamsBefore = array_merge([], $this->defaultParams);
		$requestParams = array_merge([], $this->defaultParams);
		// filter request params
		list($success, $requestParamsFiltered) = $this->currentRoute->Filter(
			$requestParams, $this->defaultParams, \MvcCore\IRoute::CONFIG_FILTER_IN
		);
		if ($success === FALSE) {
			$this->defaultParams = $defaultParamsBefore;
			$this->requestedParams = [];
			$allMatchedParams = NULL;
			$this->currentRoute = NULL;
			return TRUE;
		}
		$requestParamsFiltered = $requestParamsFiltered ?: $requestParams;
		$request->SetParams($requestParamsFiltered);
		if (isset($requestParamsFiltered[static::URL_PARAM_CONTROLLER]))
			$request->SetControllerName($requestParamsFiltered[static::URL_PARAM_CONTROLLER]);
		if (isset($requestParamsFiltered[static::URL_PARAM_ACTION]))
			$request->SetActionName($requestParamsFiltered[static::URL_PARAM_ACTION]);
		return FALSE;
	}
protected function rewriteRoutingSetRequestParams (array & $allMatchedParams) {
		$request = & $this->request;
		$defaultParamsBefore = array_merge([], $this->defaultParams);
		$requestParams = array_merge([], $this->defaultParams);
		// filter request params
		list($success, $requestParamsFiltered) = $this->currentRoute->Filter(
			$requestParams, $this->defaultParams, \MvcCore\IRoute::CONFIG_FILTER_IN
		);
		if ($success === FALSE) {
			$this->defaultParams = $defaultParamsBefore;
			$this->requestedParams = [];
			$allMatchedParams = NULL;
			$this->currentRoute = NULL;
			return TRUE;
		}
		$requestParamsFiltered = $requestParamsFiltered ?: $requestParams;
		$request->SetParams($requestParamsFiltered);
		if (isset($requestParamsFiltered[static::URL_PARAM_CONTROLLER]))
			$request->SetControllerName($requestParamsFiltered[static::URL_PARAM_CONTROLLER]);
		if (isset($requestParamsFiltered[static::URL_PARAM_ACTION]))
			$request->SetActionName($requestParamsFiltered[static::URL_PARAM_ACTION]);
		return FALSE;
	}
protected function rewriteRoutingSetRequestParams ( array & $ allMatchedParams ) { $ request = & $ this -> request ; $ defaultParamsBefore = array_merge ( [ ] , $ this -> defaultParams ) ; $ requestParams = array_merge ( [ ] , $ this -> defaultParams ) ; // filter request params list ( $ success , $ requestParamsFiltered ) = $ this -> currentRoute -> Filter ( $ requestParams , $ this -> defaultParams , \ MvcCore \ IRoute :: CONFIG_FILTER_IN ) ; if ( $ success === FALSE ) { $ this -> defaultParams = $ defaultParamsBefore ; $ this -> requestedParams = [ ] ; $ allMatchedParams = NULL ; $ this -> currentRoute = NULL ; return TRUE ; } $ requestParamsFiltered = $ requestParamsFiltered ? : $ requestParams ; $ request -> SetParams ( $ requestParamsFiltered ) ; if ( isset ( $ requestParamsFiltered [ static :: URL_PARAM_CONTROLLER ] ) ) $ request -> SetControllerName ( $ requestParamsFiltered [ static :: URL_PARAM_CONTROLLER ] ) ; if ( isset ( $ requestParamsFiltered [ static :: URL_PARAM_ACTION ] ) ) $ request -> SetActionName ( $ requestParamsFiltered [ static :: URL_PARAM_ACTION ] ) ; return FALSE ; }
Filter route in and if filtering is not successful, return `TRUE` about
continuing another route matching. If filtering is successful, set matched
controller and action into request object and return `TRUE` to finish routes
matching process.
@param array $allMatchedParams	All matched params completed `\MvcCore\Route::Matches();`,
where could be controller and action if it is defined in
route object, default param values from route and all
rewrite params parsed by route.
@return bool
Filter route in and if filtering is not successful return TRUE about continuing another route matching . If filtering is successful set matched controller and action into request object and return TRUE to finish routes matching process .