PHP Classes

File: src/Exception/FormLockException.php

Recommend this page to a friend!
  Packages of Scott Arciszewski   Anti-CSRF   src/Exception/FormLockException.php   Download  
File: src/Exception/FormLockException.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Anti-CSRF
Generate tokens to protect against CSRF exploits
Author: By
Last change:
Date: 9 months ago
Size: 381 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);

namespace
ParagonIE\AntiCSRF\Exception;

/**
 * Class FormLockException
 *
 * @package ParagonIE\AntiCSRF
 */
class FormLockException extends AntiCSRFException
{
    public static function
create(string $lockTo): self
   
{
        return new
self(
            \
sprintf('Form action "%s" did not match the stored value', $lockTo)
        );
    }
}