Nelmio\SecurityBundle\Signer::__construct PHP Method

__construct() public method

public __construct ( $secret, $algo )
    public function __construct($secret, $algo)
    {
        $this->secret = $secret;
        $this->algo = $algo;
        if (!in_array($this->algo, hash_algos(), true)) {
            throw new \InvalidArgumentException(sprintf("The supplied hashing algorithm '%s' is not supported by this system.", $this->algo));
        }
    }