public function attachHoneypot(ResponseInterface $response)
	{
		$prep_field = $this->prepareTemplate($this->config->template);

		$body = $response->getBody();
		$body = str_ireplace('</form>', $prep_field, $body);
		$response->setBody($body);
	}
public function attachHoneypot(ResponseInterface $response)
	{
		$prep_field = $this->prepareTemplate($this->config->template);

		$body = $response->getBody();
		$body = str_ireplace('</form>', $prep_field, $body);
		$response->setBody($body);
	}
public function attachHoneypot ( ResponseInterface $ response ) { $ prep_field = $ this -> prepareTemplate ( $ this -> config -> template ) ; $ body = $ response -> getBody ( ) ; $ body = str_ireplace ( '</form>' , $ prep_field , $ body ) ; $ response -> setBody ( $ body ) ; }
Attaches Honeypot template to response.

@param \CodeIgniter\HTTP\ResponseInterface $response
Attaches Honeypot template to response .