|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __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) | |
| dispatch (\Magento\Framework\App\RequestInterface $request) | |
Public Member Functions inherited from FrontControllerInterface | |
| dispatch (RequestInterface $request) | |
Data Fields | |
| const | SCHEMA_PATH = '/schema' |
Protected Member Functions | |
| isSchemaRequest () | |
| getCurrentRoute () | |
| checkPermissions () | |
| validateRequest () | |
Front controller for WebAPI REST area.
@SuppressWarnings(PHPMD.CouplingBetweenObjects) @SuppressWarnings(PHPMD.TooManyFields)
| __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 | ||
| ) |
Initialize dependencies
| 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 | TODO: Consider removal of warning suppression @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 141 of file Rest.php.
|
protected |
| dispatch | ( | \Magento\Framework\App\RequestInterface | $request | ) |
Handle REST request
Based on request decide is it schema request or API request and process accordingly. Throws Exception in case if cannot be processed properly.
| \Magento\Framework\App\RequestInterface | $request |
Definition at line 180 of file Rest.php.
|
protected |
Retrieve current route.
Definition at line 214 of file Rest.php.
|
protected |
|
protected |
| const SCHEMA_PATH = '/schema' |