lithium\storage\session\strategy\Hmac::__construct()

public method

Constructor.

Parameters

  • array $config

    Configuration array. Will throw an exception if the 'secret' configuration key is not set.

Returns

void

Source

	public function __construct(array $config = []) {
		if (!isset($config['secret'])) {
			throw new ConfigException("HMAC strategy requires a secret key.");
		}
		static::$_secret = $config['secret'];
	}