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