protected function dispatchOnRequest(RequestInterface $request): RequestInterface
    {
        $requestEvent = new RequestEvent($request);
        $this->dispatcher->dispatch($this->requestEvent, $requestEvent);

        return $requestEvent->getRequest();
    }
protected function dispatchOnRequest(RequestInterface $request): RequestInterface
    {
        $requestEvent = new RequestEvent($request);
        $this->dispatcher->dispatch($this->requestEvent, $requestEvent);

        return $requestEvent->getRequest();
    }
protected function dispatchOnRequest ( RequestInterface $ request ) : RequestInterface { $ requestEvent = new RequestEvent ( $ request ) ; $ this -> dispatcher -> dispatch ( $ this -> requestEvent , $ requestEvent ) ; return $ requestEvent -> getRequest ( ) ; }
Dispatch on-request event

@param  RequestInterface $request
@return RequestInterface
Dispatch on - request event