Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Incorrect ServiceCircularReferenceException? #2347
referenced this issue
May 3, 2013
Answering my own question here. I think I can use
So you have the circular reference, as thrown.
It would only be possible if the twig service is only loaded when you actually need it (instead of on creation time) - which you do by inserting the whole service container and requesting the service in your method.