lithium\storage\session\strategy\Hmac::delete()
Delete strategy method.
Parameters
-
mixed
$data
The data to be signed.
-
array
$options
Options for this method.
Returns
arrayData & signature.
Links
Source
public function delete($data, array $options = []) {
$class = $options['class'];
$futureData = $class::read(null, ['strategies' => false]);
unset($futureData[$options['key']]);
$signature = static::_signature($futureData);
$class::write('__signature', $signature, ['strategies' => false] + $options);
return $data;
}