protected static function configure( $route, $raw_route ) 
	{	
		// deal with emptiness
		if ( is_null( $raw_route ) )
		{
			return false;	
		}
		// this might be a controller
		if ( is_string( $raw_route ) ) 
		{	
			// are there overwrite parameters?
			if ( strpos( $raw_route, '?' ) !== false ) 
			{
				$route->params = explode( ',', CCStr::suffix( $raw_route, '?' ) );
				$raw_route = CCStr::cut( $raw_route, '?' );
			}
			
			// is there a overwrite action?
			if ( strpos( $raw_route, '@' ) !== false ) 
			{
				$route->action = CCStr::suffix( $raw_route, '@' );
				$raw_route = CCStr::cut( $raw_route, '@' );
			}
			
			// try creating an controller instance
			$controller = CCController::create( $raw_route );
			
			// set the callback on controller execute
			$route->callback = array( $controller, 'execute' );
		}
		// is the route callable set it up
		elseif ( is_callable( $raw_route ) ) 
		{
			$route->callback = $raw_route;
		}
		
		return $route;
	}
protected static function configure( $route, $raw_route ) 
	{	
		// deal with emptiness
		if ( is_null( $raw_route ) )
		{
			return false;	
		}
		// this might be a controller
		if ( is_string( $raw_route ) ) 
		{	
			// are there overwrite parameters?
			if ( strpos( $raw_route, '?' ) !== false ) 
			{
				$route->params = explode( ',', CCStr::suffix( $raw_route, '?' ) );
				$raw_route = CCStr::cut( $raw_route, '?' );
			}
			
			// is there a overwrite action?
			if ( strpos( $raw_route, '@' ) !== false ) 
			{
				$route->action = CCStr::suffix( $raw_route, '@' );
				$raw_route = CCStr::cut( $raw_route, '@' );
			}
			
			// try creating an controller instance
			$controller = CCController::create( $raw_route );
			
			// set the callback on controller execute
			$route->callback = array( $controller, 'execute' );
		}
		// is the route callable set it up
		elseif ( is_callable( $raw_route ) ) 
		{
			$route->callback = $raw_route;
		}
		
		return $route;
	}
protected static function configure ( $ route , $ raw_route ) { // deal with emptiness if ( is_null ( $ raw_route ) ) { return false ; } // this might be a controller if ( is_string ( $ raw_route ) ) { // are there overwrite parameters? if ( strpos ( $ raw_route , '?' ) !== false ) { $ route -> params = explode ( ',' , CCStr :: suffix ( $ raw_route , '?' ) ) ; $ raw_route = CCStr :: cut ( $ raw_route , '?' ) ; } // is there a overwrite action? if ( strpos ( $ raw_route , '@' ) !== false ) { $ route -> action = CCStr :: suffix ( $ raw_route , '@' ) ; $ raw_route = CCStr :: cut ( $ raw_route , '@' ) ; } // try creating an controller instance $ controller = CCController :: create ( $ raw_route ) ; // set the callback on controller execute $ route -> callback = array ( $ controller , 'execute' ) ; } // is the route callable set it up elseif ( is_callable ( $ raw_route ) ) { $ route -> callback = $ raw_route ; } return $ route ; }
Check and complete a route

@param CCRoute 			$route
@param mixed				$raw_route
@return false|CCRoute
Check and complete a route