twig DI, some methods