Zend\Stratigility\Http\Request::getCurrentRequest PHP Method

getCurrentRequest() public method

Return the currently decorated PSR request instance
public getCurrentRequest ( ) : Psr\Http\Message\ServerRequestInterface
return Psr\Http\Message\ServerRequestInterface
    public function getCurrentRequest()
    {
        trigger_error(sprintf('%s is now deprecated. The request passed to your method is the current ' . 'request now. %s will no longer be available starting in Stratigility 2.0.0. ' . 'Please see https://docs.zendframework.com/migration/to-v2/#original-request-response-and-uri ' . 'for full details.', __CLASS__, \Zend\Stratigility\Middleware\OriginalMessages::class, __METHOD__), E_USER_DEPRECATED);
        return $this->psrRequest;
    }