lithium\storage\session\strategy\Hmac::__construct()
Overrides
lithium\core\Object::__construct()
Constructor.
Parameters
-
array
$config
Configuration array. Will throw an exception if the 'secret' configuration key is not set.
Returns
voidSource
public function __construct(array $config = []) {
if (!isset($config['secret'])) {
throw new ConfigException("HMAC strategy requires a secret key.");
}
static::$_secret = $config['secret'];
}