lithium\storage\session\adapter\Cookie::keyFormat()
Formats the given $name
argument for use in the cookie adapter.
Parameters
-
string
$name
The key to be formatted, e.g.
foo.bar.baz
. -
array
$config
Returns
stringThe formatted key.
Source
public static function keyFormat($name, $config) {
return $config['name'] . '[' . str_replace('.', '][', $name) . ']';
}