original_string: protected static function parse_match($match)
  	{
  		$namespace = '';
  		$segments = $match->segments;
  		$module = false;
  
  		// First port of call: request for a module?
  		if (\Module::exists($segments[0]))
  		{
  			// make the module known to the autoloader
  			\Module::load($segments[0]);
  			$match->module = array_shift($segments);
  			$namespace .= ucfirst($match->module).'\\';
  			$module = $match->module;
  		}
  
  		if ($info = static::parse_segments($segments, $namespace, $module))
  		{
  			$match->controller = $info['controller'];
  			$match->action = $info['action'];
  			$match->method_params = $info['method_params'];
  			return $match;
  		}
  		else
  		{
  			return null;
  		}
  	}
code: protected static function parse_match($match)
  	{
  		$namespace = '';
  		$segments = $match->segments;
  		$module = false;
  
  		// First port of call: request for a module?
  		if (\Module::exists($segments[0]))
  		{
  			// make the module known to the autoloader
  			\Module::load($segments[0]);
  			$match->module = array_shift($segments);
  			$namespace .= ucfirst($match->module).'\\';
  			$module = $match->module;
  		}
  
  		if ($info = static::parse_segments($segments, $namespace, $module))
  		{
  			$match->controller = $info['controller'];
  			$match->action = $info['action'];
  			$match->method_params = $info['method_params'];
  			return $match;
  		}
  		else
  		{
  			return null;
  		}
  	}
code_tokens: protected static function parse_match ( $ match ) { $ namespace = '' ; $ segments = $ match -> segments ; $ module = false ; // First port of call: request for a module? if ( \ Module :: exists ( $ segments [ 0 ] ) ) { // make the module known to the autoloader \ Module :: load ( $ segments [ 0 ] ) ; $ match -> module = array_shift ( $ segments ) ; $ namespace .= ucfirst ( $ match -> module ) . '\\' ; $ module = $ match -> module ; } if ( $ info = static :: parse_segments ( $ segments , $ namespace , $ module ) ) { $ match -> controller = $ info [ 'controller' ] ; $ match -> action = $ info [ 'action' ] ; $ match -> method_params = $ info [ 'method_params' ] ; return $ match ; } else { return null ; } }
docstring: Find the controller that matches the route requested
  
  @param	Route  $match  the given Route object
  @return	mixed  the match array or false
docstring_tokens: Find the controller that matches the route requested