original_string: 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;
  	}
code: 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;
  	}
code_tokens: 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 ; }
docstring: Check and complete a route
  
  @param CCRoute 			$route
  @param mixed				$raw_route
  @return false|CCRoute
docstring_tokens: Check and complete a route