protected static function runCallback($method, $args)
	{
		$instance = static::resolveFacadeInstance();

		if(empty($args))
		{
			throw new InvalidArgumentException("Please provide an argument to this method");
			
		}

		switch (count($args))
		{
			case 0:
				return $instance->$method();

			case 1:
				return $instance->$method($args[0]);

			case 2:
				return $instance->$method($args[0], $args[1]);

			case 3:
				return $instance->$method($args[0], $args[1], $args[2]);

			case 4:
				return $instance->$method($args[0], $args[1], $args[2], $args[3]);

			default:
				return call_user_func_array(array($instance, $method), $args);
		}
	}
protected static function runCallback($method, $args)
	{
		$instance = static::resolveFacadeInstance();

		if(empty($args))
		{
			throw new InvalidArgumentException("Please provide an argument to this method");
			
		}

		switch (count($args))
		{
			case 0:
				return $instance->$method();

			case 1:
				return $instance->$method($args[0]);

			case 2:
				return $instance->$method($args[0], $args[1]);

			case 3:
				return $instance->$method($args[0], $args[1], $args[2]);

			case 4:
				return $instance->$method($args[0], $args[1], $args[2], $args[3]);

			default:
				return call_user_func_array(array($instance, $method), $args);
		}
	}
protected static function runCallback ( $ method , $ args ) { $ instance = static :: resolveFacadeInstance ( ) ; if ( empty ( $ args ) ) { throw new InvalidArgumentException ( "Please provide an argument to this method" ) ; } switch ( count ( $ args ) ) { case 0 : return $ instance -> $ method ( ) ; case 1 : return $ instance -> $ method ( $ args [ 0 ] ) ; case 2 : return $ instance -> $ method ( $ args [ 0 ] , $ args [ 1 ] ) ; case 3 : return $ instance -> $ method ( $ args [ 0 ] , $ args [ 1 ] , $ args [ 2 ] ) ; case 4 : return $ instance -> $ method ( $ args [ 0 ] , $ args [ 1 ] , $ args [ 2 ] , $ args [ 3 ] ) ; default : return call_user_func_array ( array ( $ instance , $ method ) , $ args ) ; } }
Facotory method to call the handler methods
@param  string $method
@param  array $args
@return mixed
Facotory method to call the handler methods