Twig Render à la variable
// Instead of
$view->render($response, 'template.twig', []);
// Use
$content = $view->fetch('template.twig', []);
// It will not be added to a response,
// just saved as a string in the variable!
Xanthous Xenomorph