Added twig extension for registry