Made build method twig context aware