public function before(RequestInterface
$request,
$arguments = null
) { if (!
$request instanceof IncomingRequest
) { return;
} if (Services::
honeypot()->
hasContent($request)) { throw HoneypotException::
isBot();
} } /**
* Attach a honeypot to the current response.
*
* @param array|null $arguments
*/
public function after(RequestInterface
$request, ResponseInterface
$response,
$arguments = null
) { Services::
honeypot()->
attachHoneypot($response);
}