lithium\test\Fixtures::__callStatic()

public static method

Delegate calls to adapters

Parameters

  • string $method

    The called method name.

  • array $params

    The parameters array.

Returns

mixed

Source

	public static function __callStatic($method, $params) {
		$name = array_shift($params);

		if (($config = static::_config($name)) === null) {
			throw new ConfigException("Configuration `{$name}` has not been defined.");
		}
		return call_user_func_array([static::adapter($name), $method], $params);
	}