public static function routeTask($command, $class, $task = 'execute')
	{
		// Aliases take precedence, so parse for them first
		if ($aliases = Config::get('aliases'))
		{
			if (array_key_exists($command, $aliases))
			{
				if (strpos($aliases->$command, '::') !== false)
				{
					$bits = explode('::', $aliases->$command);
					$task = $bits[1];
				}
			}
		}

		// Make sure task exists
		if (!method_exists($class, $task))
		{
			throw new UnsupportedTaskException("{$class} does not support the {$task} method.");
		}

		return $task;
	}
public static function routeTask($command, $class, $task = 'execute')
	{
		// Aliases take precedence, so parse for them first
		if ($aliases = Config::get('aliases'))
		{
			if (array_key_exists($command, $aliases))
			{
				if (strpos($aliases->$command, '::') !== false)
				{
					$bits = explode('::', $aliases->$command);
					$task = $bits[1];
				}
			}
		}

		// Make sure task exists
		if (!method_exists($class, $task))
		{
			throw new UnsupportedTaskException("{$class} does not support the {$task} method.");
		}

		return $task;
	}
public static function routeTask ( $ command , $ class , $ task = 'execute' ) { // Aliases take precedence, so parse for them first if ( $ aliases = Config :: get ( 'aliases' ) ) { if ( array_key_exists ( $ command , $ aliases ) ) { if ( strpos ( $ aliases -> $ command , '::' ) !== false ) { $ bits = explode ( '::' , $ aliases -> $ command ) ; $ task = $ bits [ 1 ] ; } } } // Make sure task exists if ( ! method_exists ( $ class , $ task ) ) { throw new UnsupportedTaskException ( "{$class} does not support the {$task} method." ) ; } return $ task ; }
Routes task to the proper method based on the input given

@param   string  $command  The command to route
@param   string  $class    The class deduced from routeCommand
@param   string  $task     The task to route
@return  void
Routes task to the proper method based on the input given