You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`\Magento\Framework\App\AreaList` - areas from argument di.xml ([AreaList](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/AreaList.php))
system config `admin/url/use_custom`, `admin/url/custom`
73
80
- crontab = null
74
81
- webapi_rest = [frontName `/rest`]
75
82
- webapi_soap = [frontname `/soap`]
76
83
77
-
1. ObjectManagerInterface::configure - selected area code
78
-
1. result = FrontControllerInterface->dispatch
79
-
1. ResultInterface.renderResult into response object
84
+
1.[ObjectManagerInterface->configure()](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/ObjectManager/ObjectManager.php#L82) - selected area code
85
+
1. result = FrontControllerInterface->dispatch()
86
+
1.[ResultInterface->renderResult()](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Controller/AbstractResult.php#L122) into response object
- preference for FrontController set in [etc/webapi_rest/di.xml](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Webapi/etc/webapi_rest/di.xml#L32)
141
+
- process path [/$store]/... - specific store, [/all]/... - admin store (0), /... - default store
121
142
- a. process schema request /schema
122
-
- b. or process api request (resolve route, invoike route -> service class with params)
143
+
- b. or process api request (resolve route, invoke route -> service class with params)
@@ -41,13 +41,17 @@ reference route by ID and add own module "before" original module.
41
41
42
42
### How do you handle custom 404 pages?
43
43
44
-
1. If front controller catches NotFoundException, it changes action name *"noroute"* and continues loop.
44
+
1. If [front controller](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/FrontController.php#L61-L65) catches [\Magento\Framework\Exception\NotFoundException](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Exception/NotFoundException.php), it changes action name *"noroute"* and continues loop.
45
45
E.g. catalog/product/view/id/1 throws NotFoundException. catalog/product/noroute is checked.
46
46
47
47
1. If standard router recognizes front name but can't find controller, it tries to find *"noroute"*
48
48
action from last checked module.
49
49
E.g. catalog/brand/info controller doesn't exist, so catalog/brand/noroute will be checked.
0 commit comments