hasContent($request)) { throw HoneypotException::isBot(); } } /** * Attach a honeypot to the current response. * * @param \CodeIgniter\HTTP\RequestInterface $request * @param \CodeIgniter\HTTP\ResponseInterface $response * * @return void */ public function after(RequestInterface $request, ResponseInterface $response) { $honeypot = Services::honeypot(new \Config\Honeypot()); $honeypot->attachHoneypot($response); } }