moved twig extension setter

Seems faster