119 private $storeManager;
156 $this->_router = $router;
160 $this->_appState = $appState;
163 $this->_errorProcessor = $errorProcessor;
164 $this->_pathProcessor = $pathProcessor;
182 $path = $this->_pathProcessor->process(
$request->getPathInfo());
183 $this->_request->setPathInfo(
$path);
184 $this->areaList->getArea($this->_appState->getAreaCode())
185 ->load(\
Magento\Framework\
App\Area::PART_TRANSLATE);
187 $processor = $this->requestProcessorPool->getProcessor($this->_request);
189 }
catch (\Exception $e) {
190 $maskedException = $this->_errorProcessor->maskException($e);
191 $this->_response->setException($maskedException);
216 if (!$this->_route) {
217 $this->_route = $this->_router->match($this->_request);
234 if (!$this->authorization->isAllowed($route->getAclResources())) {
235 $params = [
'resources' => implode(
', ', $route->getAclResources())];
237 __(
"The consumer isn't authorized to access %resources.",
$params)
254 if ($this->
getCurrentRoute()->isSecure() && !$this->_request->isSecure()) {
255 throw new \Magento\Framework\Webapi\Exception(
__(
'Operation allowed only in HTTPS'));
258 && strtoupper($this->_request->getMethod()) === RestRequest::HTTP_METHOD_GET
260 throw new \Magento\Framework\Webapi\Exception(
__(
'Cannot perform GET operation with store code \'all\''));
__construct(RestRequest $request, RestResponse $response, Router $router, \Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\App\State $appState, Authorization $authorization, ServiceInputProcessor $serviceInputProcessor, ErrorProcessor $errorProcessor, PathProcessor $pathProcessor, \Magento\Framework\App\AreaList $areaList, ParamsOverrider $paramsOverrider, StoreManagerInterface $storeManager, RequestProcessorPool $requestProcessorPool)
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
dispatch(\Magento\Framework\App\RequestInterface $request)