Skip to content

Commit b302bde

Browse files
SubrataBauriunicoder88
authored andcommitted
Fix code links for Request Flow Processing
1 parent 1796870 commit b302bde

3 files changed

+60
-60
lines changed

2. Request Flow Processing/1. Utilize modes and application initialization.md

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Utilize modes and application initialization
22

33
## Identify the steps for application initialization.
4-
[app/bootstrap.php](https://github.com/magento/magento2/blob/2.3-develop/app/bootstrap.php):
4+
[app/bootstrap.php](https://github.com/magento/magento2/blob/2.3/app/bootstrap.php):
55

66
- composer autoloader, functions, umask, timezone UTC, php precision
77

8-
[\Magento\Framework\App\Bootstrap](https://github.com/magento/magento2/blob/2.3-develop/lib/internal/Magento/Framework/App/Bootstrap.php)::*create*
8+
[\Magento\Framework\App\Bootstrap](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/Bootstrap.php)::*create*
99

1010
- configure autoloader - PSR-4 prepend generation\Magento
1111

12-
[\Magento\Framework\App\Bootstrap](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/Bootstrap.php)::*createApplication*
12+
[\Magento\Framework\App\Bootstrap](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/Bootstrap.php)::*createApplication*
1313

1414
- just call object manager->create
1515

16-
[\Magento\Framework\App\Bootstrap](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/Bootstrap.php)::*run*
16+
[\Magento\Framework\App\Bootstrap](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/Bootstrap.php)::*run*
1717

1818
- set error handler
1919
- assert maintenance
@@ -27,30 +27,30 @@
2727

2828
### Application class
2929

30-
[bootstrap->createApplication()](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/Bootstrap.php#L230)
30+
[bootstrap->createApplication()](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/Bootstrap.php#L230)
3131

32-
- [\Magento\Framework\App\Http](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/Http.php) - index.php, pub/index.php
32+
- [\Magento\Framework\App\Http](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/Http.php) - index.php, pub/index.php
3333
load config area by front name
3434
front controller->dispatch
3535
event `controller_front_send_response_before`
3636

37-
- [\Magento\Framework\App\Cron](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/Cron.php) - pub/cron.php
37+
- [\Magento\Framework\App\Cron](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/Cron.php) - pub/cron.php
3838
config area `crontab`
3939
load translations
4040
dispatch event `default`
4141

42-
- [\Magento\MediaStorage\App\Media](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/MediaStorage/App/Media.php) - pub/get.php
42+
- [\Magento\MediaStorage\App\Media](https://github.com/magento/magento2/blob/2.3/app/code/Magento/MediaStorage/App/Media.php) - pub/get.php
4343
access /media/* when using DB image storage and physical file doesn't exist
4444

45-
- [\Magento\Framework\App\StaticResource](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/StaticResource.php) - pub/static.php
45+
- [\Magento\Framework\App\StaticResource](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/StaticResource.php) - pub/static.php
4646
404 in production
4747
/$area/$resource/$file/... params, load config by params
4848
sends file in response
4949
assetRepo->createAsset - \Magento\Framework\View\Asset\File
5050
assetPublisher->publish - materialize (copy/symlink) file if doesn't exist
5151

52-
- [\Magento\Indexer\App\Indexer](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Indexer/App/Indexer.php) - module-indexer, unused?
53-
- [\Magento\Backend\App\UserConfig](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Backend/App/UserConfig.php) - module-backend, unused?
52+
- [\Magento\Indexer\App\Indexer](https://github.com/magento/magento2/blob/2.3/app/code/Magento/Indexer/App/Indexer.php) - module-indexer, unused?
53+
- [\Magento\Backend\App\UserConfig](https://github.com/magento/magento2/blob/2.3/app/code/Magento/Backend/App/UserConfig.php) - module-backend, unused?
5454

5555
Notes:
5656

@@ -61,7 +61,7 @@ Notes:
6161

6262
### HTTP application
6363

64-
[\Magento\Framework\App\Http::launch](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/Http.php#L128)
64+
[\Magento\Framework\App\Http::launch](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/Http.php#L128)
6565
1. detect config area by front name
6666

6767
```php
@@ -71,19 +71,19 @@ $this->_state->setAreaCode($areaCode);
7171
$this->_objectManager->configure($this->_configLoader->load($areaCode));
7272
```
7373

74-
`\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))
74+
`\Magento\Framework\App\AreaList` - areas from argument di.xml ([AreaList](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/AreaList.php))
7575

7676
- frontend = [frontname null, router "standard"] --- *default when nothing matched*
7777
- adminhtml - [frontNameResolver=..., router "admin"]
78-
[\Magento\Backend\App\Area\FrontNameResolver::getFrontName(checkhost)](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Backend/App/Area/FrontNameResolver.php#L83)
78+
[\Magento\Backend\App\Area\FrontNameResolver::getFrontName(checkhost)](https://github.com/magento/magento2/blob/2.3/app/code/Magento/Backend/App/Area/FrontNameResolver.php#L83)
7979
system config `admin/url/use_custom`, `admin/url/custom`
8080
- crontab = null
8181
- webapi_rest = [frontName `/rest`]
8282
- webapi_soap = [frontname `/soap`]
8383

84-
1. [ObjectManagerInterface->configure()](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/ObjectManager/ObjectManager.php#L82) - selected area code
84+
1. [ObjectManagerInterface->configure()](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/ObjectManager/ObjectManager.php#L82) - selected area code
8585
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
86+
1. [ResultInterface->renderResult()](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Controller/AbstractResult.php#L122) into response object
8787
1. event `controller_front_send_response_before` (request, response)
8888

8989

@@ -102,7 +102,7 @@ $this->_objectManager->configure($this->_configLoader->load($areaCode));
102102
- "webapi_rest (frontName `/rest`) - preference module-webapi/etc/webapi_rest/di.xml - *\Magento\Webapi\Controller\Rest*
103103
- "webapi_soap" (frontname `/soap`) - preference module-webapi/etc/webapi_soap/di.xml - *\Magento\Webapi\Controller\Soap*
104104

105-
### [\Magento\Framework\App\FrontController](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/FrontController.php):
105+
### [\Magento\Framework\App\FrontController](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/FrontController.php):
106106

107107
- routerList
108108
- action = router[].match
@@ -112,37 +112,37 @@ $this->_objectManager->configure($this->_configLoader->load($areaCode));
112112
### Router match - action can be:
113113

114114
- generic \Magento\Framework\App\ActionInterface::execute - not used?
115-
- [\Magento\Framework\App\Action\AbstractAction](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/Action/AbstractAction.php)::dispatch - context, request, response, result factory, result redirect factory
115+
- [\Magento\Framework\App\Action\AbstractAction](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/Action/AbstractAction.php)::dispatch - context, request, response, result factory, result redirect factory
116116

117117
### Dispatch/execute action - result can be:
118118

119-
- [\Magento\Framework\Controller\ResultInterface](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Controller/ResultInterface.php) - renderResult, setHttpResponseCode, setHeader
119+
- [\Magento\Framework\Controller\ResultInterface](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Controller/ResultInterface.php) - renderResult, setHttpResponseCode, setHeader
120120

121121
Implementations:
122-
- [Result\Raw](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Controller/Result/Raw.php) -> Result\AbstractResult
123-
- [Result\Json](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Controller/Result/Json.php) -> Result\AbstractResult
124-
- [Result\Forward](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Controller/Result/Forward.php) -> Result\AbstractResult
125-
- [\Magento\Framework\View\Result\Layout](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/View/Result/Layout.php) -> Result\AbstractResult
126-
- [\Magento\Framework\View\Result\Page](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/View/Result/Page.php) -> \Magento\Framework\View\Result\Layout
127-
- [Result\Redirect](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Controller/Result/Redirect.php) -> Result\AbstractResult
122+
- [Result\Raw](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Controller/Result/Raw.php) -> Result\AbstractResult
123+
- [Result\Json](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Controller/Result/Json.php) -> Result\AbstractResult
124+
- [Result\Forward](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Controller/Result/Forward.php) -> Result\AbstractResult
125+
- [\Magento\Framework\View\Result\Layout](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/View/Result/Layout.php) -> Result\AbstractResult
126+
- [\Magento\Framework\View\Result\Page](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/View/Result/Page.php) -> \Magento\Framework\View\Result\Layout
127+
- [Result\Redirect](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Controller/Result/Redirect.php) -> Result\AbstractResult
128128

129-
- [\Magento\Framework\App\ResponseInterface](https://github.com/magento/magento2/blob/2.2-develop/lib/internal//Magento/Framework/App/ResponseInterface.php) - sendResponse
129+
- [\Magento\Framework\App\ResponseInterface](https://github.com/magento/magento2/blob/2.3/lib/internal//Magento/Framework/App/ResponseInterface.php) - sendResponse
130130

131131
Implementations:
132-
- [Console\Response](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/App/Console/Response.php)
133-
- [\Magento\MediaStorage\Model\File\Storage\FileInterface](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/MediaStorage/Model/File/Storage/Response.php) -> \Magento\Framework\App\Response\Http
134-
- [\Magento\Framework\HTTP\PhpEnvironment\Response](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/HTTP/PhpEnvironment/Response.php) -> \Zend\Http\PhpEnvironment\Response
135-
- [\Magento\Framework\Webapi\Response](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Webapi/Response.php) -> \Magento\Framework\HTTP\PhpEnvironment\Response
136-
- [\Magento\Framework\Webapi\Rest\Response](https://github.com/magento/magento2/blob/2.2-develop/lib/internal/Magento/Framework/Webapi/Rest/Response.php) -> \Magento\Framework\Webapi\Response
132+
- [Console\Response](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/App/Console/Response.php)
133+
- [\Magento\MediaStorage\Model\File\Storage\FileInterface](https://github.com/magento/magento2/blob/2.3/app/code/Magento/MediaStorage/Model/File/Storage/Response.php) -> \Magento\Framework\App\Response\Http
134+
- [\Magento\Framework\HTTP\PhpEnvironment\Response](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/HTTP/PhpEnvironment/Response.php) -> \Zend\Http\PhpEnvironment\Response
135+
- [\Magento\Framework\Webapi\Response](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Webapi/Response.php) -> \Magento\Framework\HTTP\PhpEnvironment\Response
136+
- [\Magento\Framework\Webapi\Rest\Response](https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Webapi/Rest/Response.php) -> \Magento\Framework\Webapi\Response
137137

138-
### [\Magento\Webapi\Controller\Rest](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Webapi/Controller/Rest.php) -> \Magento\Framework\App\FrontControllerInterface:
138+
### [\Magento\Webapi\Controller\Rest](https://github.com/magento/magento2/blob/2.3/app/code/Magento/Webapi/Controller/Rest.php) -> \Magento\Framework\App\FrontControllerInterface:
139139

140-
- 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)
140+
- preference for FrontController set in [etc/webapi_rest/di.xml](https://github.com/magento/magento2/blob/2.3/app/code/Magento/Webapi/etc/webapi_rest/di.xml#L32)
141141
- process path [/$store]/... - specific store, [/all]/... - admin store (0), /... - default store
142142
- a. process schema request /schema
143143
- b. or process api request (resolve route, invoke route -> service class with params)
144144

145-
### [\Magento\Webapi\Controller\Soap](https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Webapi/Controller/Soap.php) -> \Magento\Framework\App\FrontControllerInterface:
145+
### [\Magento\Webapi\Controller\Soap](https://github.com/magento/magento2/blob/2.3/app/code/Magento/Webapi/Controller/Soap.php) -> \Magento\Framework\App\FrontControllerInterface:
146146

147147
- process path (same as REST)
148148
- a. generate WSDL ?wsdl

0 commit comments

Comments
 (0)