How to execute a command within a controller of a Symfony2 application and print in real-time the output in a Twig template How to execute a command within a controller of a Symfony2 application and print in real-time the output in a Twig template symfony symfony