lithium\security\validation\RequestToken::config()
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
arrayIf $config
is empty, returns an array with a 'classes'
key containing class
dependencies. Otherwise returns null
.
Source
public static function config(array $config = []) {
if (!$config) {
return ['classes' => static::$_classes];
}
foreach ($config as $key => $val) {
$key = "_{$key}";
if (isset(static::${$key})) {
static::${$key} = $val + static::${$key};
}
}
}