lithium\core\Adaptable::enabled()

public static method

Determines if the adapter specified in the named configuration is enabled.

Enabled can mean various things, e.g. having a PECL memcached extension compiled & loaded, as well as having the memcache server up & available.

Parameters

  • string $name

    The named configuration whose adapter will be checked.

Returns

boolean

True if adapter is enabled, false if not. This method will return null if no configuration under the given $name exists.

Source

	public static function enabled($name) {
		$class = static::_class(static::_config($name) ?: ['adapter' => null], static::$_adapters);
		return $class::enabled();
	}