Get Free Audit

Output Flushing in Magento 2. Magento Developer Certification

Dec 12, 2017

894 Andrey Litvin

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.

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

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

Andrey Dubina
Partner With Us Looking for a partner to grow your business? We are the right company to bring your webstore to success. Talk to Andrey

2 Comments

Post a new comment

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