I need to send some flush while the page is being processed using slim with twig.
I need to render a page and still flush it
I need to send some flush while the page is being processed using slim with twig.
I need to render a page and still flush it
You could try the flush
tag to tell Twig to flush the output buffer:
https://twig.symfony.com/doc/3.x/tags/flush.html
A custom middleware could convert the flushed output buffer to a PSR-7 stream.