HoneyPotMiddleware
- Full name:
\Codefy\Framework\Http\Middleware\Spam\HoneyPotMiddleware - This class implements:
MiddlewareInterface
Properties
current
private static \Codefy\Framework\Http\Middleware\Spam\HoneyPotMiddleware $current
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 | |