Used to get or reconfigure dependencies with custom classes.
Parameters
- array $config When assigning new configuration, should be an array containing a `'classes'` key.
Returns
array If `$config` is empty, returns an array with a `'classes'` key containing class dependencies. Otherwise returns `null`.Source
public static function config(array $config = array()) {
if (!$config) {
return array('classes' => static::$_classes);
}
foreach ($config as $key => $val) {
$key = "_{$key}";
if (isset(static::${$key})) {
static::${$key} = $val + static::${$key};
}
}
}