I try to make an http authentication for one of my module using Zend framework 2.2, my code is strongly inspired from the official documentation, in there is :
$request=$this->getRequest();
$response=$this->getResponse();
assert($request instanceof Zend\Http\Request);
assert($response instanceof Zend\Http\Response);
The problem is that the assertion goes false, it seems that $request and $response come from another class, so my script's not working. How could I get request and response From Zend\Http\Request|Response in my Controller ?
Many thanks.