protected function setMainRequestToUriBuilder() { $mainRequest = $this->controllerContext->getRequest()->getMainRequest(); $this->uriBuilder->setRequest($mainRequest); }