ParagonIE\AntiCSRF\AntiCSRF::reconfigure PHP Method

reconfigure() public method

Only use this if you know what you are doing.
public reconfigure ( array $options = [] ) : self
$options array
return self
    public function reconfigure(array $options = []) : self
    {
        foreach ($options as $opt => $val) {
            switch ($opt) {
                case 'formIndex':
                case 'formToken':
                case 'sessionIndex':
                case 'recycle_after':
                case 'hmac_ip':
                case 'expire_old':
                    $this->{${$opt}} = $val;
                    break;
                case 'hashAlgo':
                    if (\in_array($val, \hash_algos())) {
                        $this->hashAlgo = $val;
                    }
                    break;
            }
        }
        return $this;
    }