Use a CompilerPass to load Twig extensions.