lithium\core\Adaptable::_initConfig()

protected static method
Per adapter filters have been deprecated, future versions will not add the `'filters'` option to the initial configuration anymore.

A stub method called by _config() which allows Adaptable subclasses to automatically assign or auto-generate additional configuration data, once a configuration is first accessed. This allows configuration data to be lazy-loaded from adapters or other data sources.

Parameters

  • string $name

    The name of the configuration which is being accessed. This is the key name containing the specific set of configuration passed into config().

  • array $config

    Contains the configuration assigned to $name. If this configuration is segregated by environment, then this will contain the configuration for the current environment.

Returns

array

Returns the final array of settings for the given named configuration.

Source

	protected static function _initConfig($name, $config) {
		if (!empty($config['filters'])) {
			trigger_error('Per adapter filters have been deprecated.', E_USER_DEPRECATED);
		}
		$defaults = ['adapter' => null, 'filters' => []];
		return (array) $config + $defaults;
	}