Output Flushing in Magento 2. Magento Developer Certification

Output Flushing in Magento 2. Magento Developer Certification

The article is dedicated to flushing data in Magento 2. Learning one of the significant processes in Magento, you’ll be able to make a distinction between Magento 1 and 2 and go up for the Magento exam.

Flushing data in Magento 2 (read here about Output Flushing in Magento 1) is triggered in \Magento\Framework\App\Bootstrap::run method by calling \Magento\Framework\App\ResponseInterface::sendResponse method.

Depending on request nature (e.g. http, webapi, console command, etc.), this will call an appropriate method of implementing class. In case of HTTP response it will be \Magento\Framework\HTTP\PhpEnvironment\Response::sendResponse method where  method will be called.

Associated events

controller_front_send_response_before – invokes at the and of \Magento\Framework\App\Http::launch just before returning processed response to \Magento\Framework\App\Bootstrap::run method.

Redirects

Internal redirects

HTTP redirects



2 comments

Post a new comment

top
BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *