Pass the current environment as a parameter to avoid circular reference with twig