Skip to content

HoneyPotMiddleware

Properties

current

private static \Codefy\Framework\Http\Middleware\Spam\HoneyPotMiddleware $current
  • This property is static.

attrName

private string $attrName

Methods

__construct

public __construct(string $attrName = 'hpt_name'): mixed

Parameters:

Parameter Type Description
$attrName string

getField

public static getField(?string $name = null, ?string $label = null): string
  • This method is static.

Parameters:

Parameter Type Description
$name ?string
$label ?string

getHiddenField

public static getHiddenField(?string $name = null): string
  • This method is static.

Parameters:

Parameter Type Description
$name ?string

process

public process(\Psr\Http\Message\ServerRequestInterface $request, \Psr\Http\Server\RequestHandlerInterface $handler): \Psr\Http\Message\ResponseInterface

Parameters:

Parameter Type Description
$request \Psr\Http\Message\ServerRequestInterface
$handler \Psr\Http\Server\RequestHandlerInterface

Throws:


isValid

private isValid(\Psr\Http\Message\ServerRequestInterface $request): bool

Parameters:

Parameter Type Description
$request \Psr\Http\Message\ServerRequestInterface


Automatically generated on 2025-10-13