Output Flushing in Magento 2. Magento Developer Certification

Dec 12, 2017236Gennadiy Haritonov
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.

Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Dmitry

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


Partner With Us Looking for a partner that will help you to grow your business? We are the right company to develop your webstore. Feel free to get in touch with us. We will be happy to discuss your business opportunities and provide you with a Free Quote. Talk to Dmitry

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 *