Update TwigFactory.php