add service definition for twig extension