Rendering Twig templates from Symfony Repository without Using Dependency Injection (DIC)
Sometimes it's useful to access Twig templates from a Symfony repository, one could argue that this goes against a repository's role, but if you think of Twig template files or Twig strings perhaps grabbed from a database as data, then this coincides nicely with the function of a repo. These arguments aside, whatever your situation,…