33namespace App \Filters ;
44
55use CodeIgniter \Filters \FilterInterface ;
6- use CodeIgniter \HTTP \IncomingRequest ;
7- use CodeIgniter \HTTP \Response ;
6+ use CodeIgniter \HTTP \RequestInterface ;
7+ use CodeIgniter \HTTP \ResponseInterface ;
88use Config \Services ;
99use CodeIgniter \Honeypot \Exceptions \HoneypotException ;
1010use CodeIgniter \Honeypot \Honeypot ;
@@ -16,11 +16,11 @@ class Honeypot implements FilterInterface
1616 * Checks if Honeypot field is empty; if not
1717 * then the requester is a bot
1818 *
19- * @param CodeIgniter\HTTP\IncomingRequest $request
19+ * @param CodeIgniter\HTTP\RequestInterface $request
2020 *
2121 * @return mixed
2222 */
23- public function before (IncomingRequest $ request )
23+ public function before (RequestInterface $ request )
2424 {
2525 $ honeypot = new Honeypot (new \Config \Honeypot ());
2626 if ($ honeypot ->hasContent ($ request ))
@@ -32,11 +32,11 @@ public function before(IncomingRequest $request)
3232 /**
3333 * Attach a honypot to the current response.
3434 *
35- * @param CodeIgniter\HTTP\IncomingRequest $request
36- * @param CodeIgniter\HTTP\Response $response
35+ * @param CodeIgniter\HTTP\RequestInterface $request
36+ * @param CodeIgniter\HTTP\ResponseInterface $response
3737 * @return mixed
3838 */
39- public function after (IncomingRequest $ request , Response $ response )
39+ public function after (RequestInterface $ request , ResponseInterface $ response )
4040 {
4141 $ honeypot = new Honeypot (new \Config \Honeypot ());
4242 $ honeypot ->attachHoneypot ($ response );
0 commit comments