Implementing twig as singleton for slim.