original_string: public static function performRoute($route) {
  		$api_mode = isset($route["api-mode"]);
  		Request::setRequestVariables($route["variables"], $api_mode);
  
  		$controller = new $route["class"];
  		$response = $controller->$route["method"]();
  
  		if(!Request::isAjax() && !Request::isAPI() && isset($route["render-path"])) {
  			Request::setRenderPath($route["render-path"]);
  			try {
  				$route = self::findRoute(explode('/', $route["render-path"]));
  			} catch(ValidRouteNotFoundException $e) {
  				throw new ValidRenderRouteNotFoundException($e);
  			}
  			$response = self::performRoute($route);
  		}
  
  		return $response;
  	}
code: public static function performRoute($route) {
  		$api_mode = isset($route["api-mode"]);
  		Request::setRequestVariables($route["variables"], $api_mode);
  
  		$controller = new $route["class"];
  		$response = $controller->$route["method"]();
  
  		if(!Request::isAjax() && !Request::isAPI() && isset($route["render-path"])) {
  			Request::setRenderPath($route["render-path"]);
  			try {
  				$route = self::findRoute(explode('/', $route["render-path"]));
  			} catch(ValidRouteNotFoundException $e) {
  				throw new ValidRenderRouteNotFoundException($e);
  			}
  			$response = self::performRoute($route);
  		}
  
  		return $response;
  	}
code_tokens: public static function performRoute ( $ route ) { $ api_mode = isset ( $ route [ "api-mode" ] ) ; Request :: setRequestVariables ( $ route [ "variables" ] , $ api_mode ) ; $ controller = new $ route [ "class" ] ; $ response = $ controller -> $ route [ "method" ] ( ) ; if ( ! Request :: isAjax ( ) && ! Request :: isAPI ( ) && isset ( $ route [ "render-path" ] ) ) { Request :: setRenderPath ( $ route [ "render-path" ] ) ; try { $ route = self :: findRoute ( explode ( '/' , $ route [ "render-path" ] ) ) ; } catch ( ValidRouteNotFoundException $ e ) { throw new ValidRenderRouteNotFoundException ( $ e ) ; } $ response = self :: performRoute ( $ route ) ; } return $ response ; }
docstring: Perform routing based upon the discovered route
  @internal
  @param  array $route Format: array(class, method, uri_variables)
  @see Request::setRequestVariables()
  @return mixed Return value of last route to be executed
docstring_tokens: Perform routing based upon the discovered route